diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-25 16:44:02 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-25 16:49:26 +0800 |
commit | 25e44edc30b5ca61267487248db9330da3e48a6c (patch) | |
tree | aed26c4fb1e0ac1fc9dd76d64bcf16318a49ba42 /app/policies | |
parent | d95e6da0d582cd4b0d333b3b6a1bfa3a565b874e (diff) | |
download | gitlab-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.rb | 2 |
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 |