组织精选项目作者

This commit is contained in:
xxq250 2022-12-14 09:39:11 +08:00
parent 6cdaafe4e0
commit 28d45a48a1
1 changed files with 1 additions and 1 deletions

View File

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