summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2017-12-06 17:07:47 -0200
committerFelipe Artur <felipefac@gmail.com>2018-01-04 17:28:10 -0200
commit5e148d4e931792733400f59864e1aa886ef55953 (patch)
tree3e08b1776015895dcb242909df01f5db60265d7e /app/policies
parente5a9b9a14d32d890dea20403c977dfd569eb3e17 (diff)
downloadgitlab-ce-5e148d4e931792733400f59864e1aa886ef55953.tar.gz
EE-BACKPORT group boards
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/group_policy.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb
index d2d45e402b0..f0bcba588a2 100644
--- a/app/policies/group_policy.rb
+++ b/app/policies/group_policy.rb
@@ -28,12 +28,18 @@ class GroupPolicy < BasePolicy
with_options scope: :subject, score: 0
condition(:request_access_enabled) { @subject.request_access_enabled }
- rule { public_group } .enable :read_group
+ rule { public_group }.policy do
+ enable :read_group
+ enable :read_list
+ enable :read_label
+ end
+
rule { logged_in_viewable }.enable :read_group
rule { guest }.policy do
enable :read_group
enable :upload_file
+ enable :read_label
end
rule { admin } .enable :read_group