add: repository create webhook

This commit is contained in:
2021-07-27 11:11:23 +08:00
parent ebc4305ca8
commit cb1a4d8c8c
7 changed files with 427 additions and 0 deletions

View File

@@ -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