Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f88a6e0b
Commit
f88a6e0b
authored
Sep 29, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts in lib/api/api_guard.rb and lib/api/helpers.rb
parent
f3593512
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
22 deletions
+5
-22
lib/api/api_guard.rb
lib/api/api_guard.rb
+3
-8
lib/api/helpers.rb
lib/api/helpers.rb
+2
-14
No files found.
lib/api/api_guard.rb
View file @
f88a6e0b
...
...
@@ -92,7 +92,9 @@ module API
raise
UnauthorizedError
unless
user
<<<<<<<
HEAD
user
end
def
find_user_by_job_token
return
@user_by_job_token
if
defined?
(
@user_by_job_token
)
...
...
@@ -103,13 +105,6 @@ module API
end
end
def
current_user
@current_user
=======
user
>>>>>>>
upstream
/
master
end
private
def
route_authentication_setting
...
...
lib/api/helpers.rb
View file @
f88a6e0b
...
...
@@ -423,19 +423,6 @@ module API
def
initial_current_user
return
@initial_current_user
if
defined?
(
@initial_current_user
)
<<<<<<<
HEAD
Gitlab
::
Auth
::
UniqueIpsLimiter
.
limit_user!
do
@initial_current_user
||=
find_user_by_private_token
(
scopes:
scopes_registered_for_endpoint
)
@initial_current_user
||=
doorkeeper_guard
(
scopes:
scopes_registered_for_endpoint
)
@initial_current_user
||=
find_user_from_warden
@initial_current_user
||=
find_user_by_job_token
unless
@initial_current_user
&&
Gitlab
::
UserAccess
.
new
(
@initial_current_user
).
allowed?
@initial_current_user
=
nil
end
=======
>>>>>>>
upstream
/
master
begin
@initial_current_user
=
Gitlab
::
Auth
::
UniqueIpsLimiter
.
limit_user!
{
find_current_user
}
...
...
@@ -448,7 +435,8 @@ module API
user
=
find_user_by_private_token
(
scopes:
scopes_registered_for_endpoint
)
||
doorkeeper_guard
(
scopes:
scopes_registered_for_endpoint
)
||
find_user_from_warden
find_user_from_warden
||
find_user_by_job_token
return
nil
unless
user
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment