Test Project Validate Failed15

This commit is contained in:
sylor_huang@126.com 2020-08-24 14:28:30 +08:00
parent 7e7ab71231
commit 46801284aa
1 changed files with 2 additions and 1 deletions

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