Commit 7edaf026 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve lib/api/helpers.rb

parent 819cf890
...@@ -434,7 +434,6 @@ module API ...@@ -434,7 +434,6 @@ module API
private private
<<<<<<< HEAD
def private_token def private_token
params[APIGuard::PRIVATE_TOKEN_PARAM] || env[APIGuard::PRIVATE_TOKEN_HEADER] params[APIGuard::PRIVATE_TOKEN_PARAM] || env[APIGuard::PRIVATE_TOKEN_HEADER]
end end
...@@ -457,9 +456,7 @@ module API ...@@ -457,9 +456,7 @@ module API
warden.try(:authenticate) if verified_request? warden.try(:authenticate) if verified_request?
end end
=======
# rubocop:disable Gitlab/ModuleWithInstanceVariables # rubocop:disable Gitlab/ModuleWithInstanceVariables
>>>>>>> upstream/master
def initial_current_user def initial_current_user
return @initial_current_user if defined?(@initial_current_user) # rubocop:disable Gitlab/ModuleWithInstanceVariables return @initial_current_user if defined?(@initial_current_user) # rubocop:disable Gitlab/ModuleWithInstanceVariables
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment