summaryrefslogtreecommitdiff
path: root/app/policies
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-07-25 16:44:02 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-07-25 16:49:26 +0800
commit25e44edc30b5ca61267487248db9330da3e48a6c (patch)
treeaed26c4fb1e0ac1fc9dd76d64bcf16318a49ba42 /app/policies
parentd95e6da0d582cd4b0d333b3b6a1bfa3a565b874e (diff)
downloadgitlab-ce-25e44edc30b5ca61267487248db9330da3e48a6c.tar.gz
Allow admin to read_users_list even if it's restricted
Diffstat (limited to 'app/policies')
-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 55eefa76d3f..1c91425f589 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 { ~restricted_public_level }.policy do
+ rule { admin | ~restricted_public_level }.policy do
enable :read_users_list
end
end