Merge branch 'dev_military_license' of http://git.trustie.net/jasder/forgeplus into dev_military_license

This commit is contained in:
Jasder 2020-12-29 18:20:46 +08:00
commit bf730ca18f
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ class Admins::ApplySignaturesController < Admins::BaseController
begin
apply_signature = ApplySignature.find_by!(id: params[:id])
apply_signature.update_attributes!(apply_signatures_params)
Projects::AddMemberInteractor.call(apply_signature.project.owner, apply_signature.project, apply_signature.user, "read", true)
if apply_signature.status == "passed"
Projects::AddMemberInteractor.call(apply_signature.project.owner, apply_signature.project, apply_signature.user, "read", true)
end
redirect_to admins_apply_signatures_path
flash[:success] = "更新成功"
rescue => e