diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 09:07:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 09:07:48 +0000 |
commit | 5bd24a54ef4ce3a38a860eb53b66d062c2382971 (patch) | |
tree | 5f5e65571dfcb2c62c27600ee7655dec4b44c923 /lib/api/helpers.rb | |
parent | 74673d04d25ffed35cbcf17cd42969bed0a4e705 (diff) | |
download | gitlab-ce-5bd24a54ef4ce3a38a860eb53b66d062c2382971.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index d15784bb1ab..37cb6d6a639 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -213,9 +213,9 @@ module API unauthorized! unless Devise.secure_compare(secret_token, input) end - def authenticated_with_full_private_access! + def authenticated_with_can_read_all_resources! authenticate! - forbidden! unless current_user.full_private_access? + forbidden! unless current_user.can_read_all_resources? end def authenticated_as_admin! |