mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 04:05:45 +08:00
add: repository create webhook
This commit is contained in:
@@ -4,4 +4,7 @@ class Projects::BaseController < ApplicationController
|
||||
before_action :load_project
|
||||
before_action :load_repository
|
||||
|
||||
def require_manager!
|
||||
return render_forbidden('你没有权限操作') unless current_user.admin? || @project.manager?(current_user)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user