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])