Browse Source

Test Project Validate Failed15

tags/v1.0.0
sylor_huang@126.com 5 years ago
parent
commit
46801284aa
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/concerns/devopsable.rb

+ 2
- 1
app/controllers/concerns/devopsable.rb View File

@@ -5,7 +5,8 @@ module Devopsable
end

# ci 权限验证
def ci_authorize!
def ci_authorize!
Rails.logger.info("================project_id :#{@project&.id}")
render_forbidden unless @project.owner?(current_user)
end



Loading…
Cancel
Save