summaryrefslogtreecommitdiff
path: root/app/policies/group_policy.rb
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2019-02-25 21:36:28 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2019-02-25 21:41:16 +0800
commitb81e7c52d3e82e0c053a39fac9c4fe21abcf6103 (patch)
tree9965938a6e33235507e4de20b476924e5a783cae /app/policies/group_policy.rb
parent992183534dd1af54bf891789aca5777ea91c0942 (diff)
downloadgitlab-ce-b81e7c52d3e82e0c053a39fac9c4fe21abcf6103.tar.gz
Enable `:read_list` when `:read_group` is enabled
Diffstat (limited to 'app/policies/group_policy.rb')
-rw-r--r--app/policies/group_policy.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb
index c25766a5af8..298769c0eb8 100644
--- a/app/policies/group_policy.rb
+++ b/app/policies/group_policy.rb
@@ -54,6 +54,7 @@ class GroupPolicy < BasePolicy
rule { has_projects }.policy do
enable :read_group
+ enable :read_list
enable :read_label
end