summaryrefslogtreecommitdiff
path: root/app/policies/list_policy.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-12 12:09:36 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-12 12:09:36 +0000
commit57a3a42c88f6e7dbcfd388a5c83302f0bb666023 (patch)
treef9b3368c0f0bb66deeabccc40dedc4066ff0ee22 /app/policies/list_policy.rb
parent91e8c3a6efea1d805cfa86e7ade9a9628344cf89 (diff)
downloadgitlab-ce-57a3a42c88f6e7dbcfd388a5c83302f0bb666023.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/list_policy.rb')
-rw-r--r--app/policies/list_policy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/list_policy.rb b/app/policies/list_policy.rb
new file mode 100644
index 00000000000..97845746546
--- /dev/null
+++ b/app/policies/list_policy.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+class ListPolicy < BasePolicy # rubocop:disable Gitlab/NamespacedClass
+ delegate { @subject.board.resource_parent }
+end