Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-12 18:14:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-12 18:14:03 +0300
commita75c69379b2cc15b8851aa61e874b06ea5856f83 (patch)
treee3927c8a1b9ed1b35543cc3a10624e55b9fbb9dc /app/policies/protected_branch_access_policy.rb
parent07d9675a80861fe84199e4002667f0bd57c160bf (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.rb5
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