diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 18:14:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-12 18:14:03 +0300 |
commit | a75c69379b2cc15b8851aa61e874b06ea5856f83 (patch) | |
tree | e3927c8a1b9ed1b35543cc3a10624e55b9fbb9dc /app/policies/protected_branch_access_policy.rb | |
parent | 07d9675a80861fe84199e4002667f0bd57c160bf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/protected_branch_access_policy.rb')
-rw-r--r-- | app/policies/protected_branch_access_policy.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/protected_branch_access_policy.rb b/app/policies/protected_branch_access_policy.rb new file mode 100644 index 00000000000..4f33af89d2a --- /dev/null +++ b/app/policies/protected_branch_access_policy.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +class ProtectedBranchAccessPolicy < BasePolicy + delegate { @subject.protected_branch } +end |