Browse Source

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

pull/278/head
Jasder 5 years ago
parent
commit
bf730ca18f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/controllers/admins/apply_signatures_controller.rb

+ 3
- 1
app/controllers/admins/apply_signatures_controller.rb 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


Loading…
Cancel
Save