diff options
author | Francisco Lopez <fjlopez@gitlab.com> | 2017-11-08 19:41:07 +0100 |
---|---|---|
committer | Francisco Lopez <fjlopez@gitlab.com> | 2017-11-17 10:02:10 +0100 |
commit | aecc3eb0809c4436a57f5ecdd88def58e704205d (patch) | |
tree | 227905f3f9013fdbc1040c54fc303f4dbbc2d47c /lib/api/api_guard.rb | |
parent | 374179a97042da3a4d5312afcdb0dc90a44634f0 (diff) | |
download | gitlab-ce-aecc3eb0809c4436a57f5ecdd88def58e704205d.tar.gz |
Applied some code review comments
Diffstat (limited to 'lib/api/api_guard.rb')
-rw-r--r-- | lib/api/api_guard.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/api/api_guard.rb b/lib/api/api_guard.rb index 9c68830ae34..01e15ffee84 100644 --- a/lib/api/api_guard.rb +++ b/lib/api/api_guard.rb @@ -45,7 +45,6 @@ module API include Gitlab::Utils::StrongMemoize def find_current_user! - set_raise_unauthorized_error user = find_user_from_access_token || find_user_from_warden return unless user @@ -75,10 +74,6 @@ module API private - def private_token - params[PRIVATE_TOKEN_PARAM].presence || env[PRIVATE_TOKEN_HEADER].presence - end - # An array of scopes that were registered (using `allow_access_with_scope`) # for the current endpoint class. It also returns scopes registered on # `API::API`, since these are meant to apply to all API routes. |