Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-11-08 21:41:07 +0300
committerFrancisco Lopez <fjlopez@gitlab.com>2017-11-17 12:02:10 +0300
commitaecc3eb0809c4436a57f5ecdd88def58e704205d (patch)
tree227905f3f9013fdbc1040c54fc303f4dbbc2d47c /lib/api/api_guard.rb
parent374179a97042da3a4d5312afcdb0dc90a44634f0 (diff)
Applied some code review comments
Diffstat (limited to 'lib/api/api_guard.rb')
-rw-r--r--lib/api/api_guard.rb5
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.