diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-13 06:08:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-13 06:08:09 +0300 |
commit | e44c47168ab82d5ec1d945da7c33c2da5996e267 (patch) | |
tree | c55a881ad5ffe70b69400aa0620d0559319b3a35 /app/policies/project_hook_policy.rb | |
parent | df4e4c33e0266171016df38c0a41e8c049ee114f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/project_hook_policy.rb')
-rw-r--r-- | app/policies/project_hook_policy.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/policies/project_hook_policy.rb b/app/policies/project_hook_policy.rb index c177fabb1ba..b4590c13670 100644 --- a/app/policies/project_hook_policy.rb +++ b/app/policies/project_hook_policy.rb @@ -1,10 +1,9 @@ # frozen_string_literal: true class ProjectHookPolicy < ::BasePolicy - delegate(:project) + delegate { @subject.project } rule { can?(:admin_project) }.policy do - enable :read_web_hook enable :destroy_web_hook end end |