summaryrefslogtreecommitdiff
path: root/app/policies/global_policy.rb
diff options
context:
space:
mode:
authorLin Jen-Shin (godfat) <godfat@godfat.org>2017-08-01 07:46:13 +0000
committerRémy Coutable <remy@rymai.me>2017-08-01 07:46:13 +0000
commit0d35b0818026e9a2528b44f9e72af76b98f1a162 (patch)
tree84d60cd2f5fb298d592fc6c70aa37054f3023b02 /app/policies/global_policy.rb
parentcfa41e624cdfe27a7ac0338d5098c8e9566f51c6 (diff)
downloadgitlab-ce-0d35b0818026e9a2528b44f9e72af76b98f1a162.tar.gz
Allow logged in users to read user list under public restriction
Diffstat (limited to 'app/policies/global_policy.rb')
-rw-r--r--app/policies/global_policy.rb2
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