forked from Trustie/forgeplus
组织精选项目作者
This commit is contained in:
parent
6cdaafe4e0
commit
28d45a48a1
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in New Issue