diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-12-06 17:07:47 -0200 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2018-01-04 17:28:10 -0200 |
commit | 5e148d4e931792733400f59864e1aa886ef55953 (patch) | |
tree | 3e08b1776015895dcb242909df01f5db60265d7e /app/policies | |
parent | e5a9b9a14d32d890dea20403c977dfd569eb3e17 (diff) | |
download | gitlab-ce-5e148d4e931792733400f59864e1aa886ef55953.tar.gz |
EE-BACKPORT group boards
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/group_policy.rb | 8 |
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 |