From 28d45a48a16be29ed4fdfdbbaef84754c7332214 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 14 Dec 2022 09:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E7=B2=BE=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=BD=9C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/apply_signatures_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/apply_signatures_controller.rb b/app/controllers/apply_signatures_controller.rb index 608cc3d6..1fbad047 100644 --- a/app/controllers/apply_signatures_controller.rb +++ b/app/controllers/apply_signatures_controller.rb @@ -19,7 +19,7 @@ class ApplySignaturesController < ApplicationController end def create - tip_exception "您已上传开源许可协议" if current_user.apply_signatures.where(project_id: params[:project_id]).present? + tip_exception "您已上传开源许可协议" if current_user.apply_signatures.where(project_id: params[:project_id]).where(status: ['waiting', 'passed']).present? ActiveRecord::Base.transaction do begin @signature = current_user.apply_signatures.find_or_create_by!(project_id: params[:project_id])