diff options
Diffstat (limited to 'app/policies/protected_branch_policy.rb')
-rw-r--r-- | app/policies/protected_branch_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/protected_branch_policy.rb b/app/policies/protected_branch_policy.rb index 8ad06653e5c..2be96ea7f24 100644 --- a/app/policies/protected_branch_policy.rb +++ b/app/policies/protected_branch_policy.rb @@ -4,6 +4,7 @@ class ProtectedBranchPolicy < BasePolicy delegate { @subject.project } rule { can?(:admin_project) }.policy do + enable :read_protected_branch enable :create_protected_branch enable :update_protected_branch enable :destroy_protected_branch |