diff options
author | Lin Jen-Shin (godfat) <godfat@godfat.org> | 2017-08-01 07:46:13 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-01 07:46:13 +0000 |
commit | 0d35b0818026e9a2528b44f9e72af76b98f1a162 (patch) | |
tree | 84d60cd2f5fb298d592fc6c70aa37054f3023b02 /app/policies | |
parent | cfa41e624cdfe27a7ac0338d5098c8e9566f51c6 (diff) | |
download | gitlab-ce-0d35b0818026e9a2528b44f9e72af76b98f1a162.tar.gz |
Allow logged in users to read user list under public restriction
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/global_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb index 1c91425f589..1be7bbe9953 100644 --- a/app/policies/global_policy.rb +++ b/app/policies/global_policy.rb @@ -44,7 +44,7 @@ class GlobalPolicy < BasePolicy prevent :log_in end - rule { admin | ~restricted_public_level }.policy do + rule { ~(anonymous & restricted_public_level) }.policy do enable :read_users_list end end |