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
4d6e9ee5
Commit
4d6e9ee5
authored
Oct 13, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts
parent
f5361364
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
16 deletions
+1
-16
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+0
-7
lib/api/api_guard.rb
lib/api/api_guard.rb
+1
-3
lib/api/helpers.rb
lib/api/helpers.rb
+0
-6
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
4d6e9ee5
...
...
@@ -657,13 +657,6 @@ a.deploy-project-label {
margin-bottom
:
0
;
}
<<<<<<<
HEAD
.import-btn-container
{
margin-bottom
:
0
;
}
=======
>>>>>>>
upstream
/
master
.toggle-import-form
{
padding-bottom
:
10px
;
}
...
...
lib/api/api_guard.rb
View file @
4d6e9ee5
...
...
@@ -126,7 +126,6 @@ module API
Gitlab
::
RequestForgeryProtection
.
verified?
(
env
)
end
<<<<<<<
HEAD
def
find_user_by_job_token
return
@user_by_job_token
if
defined?
(
@user_by_job_token
)
...
...
@@ -148,13 +147,12 @@ module API
def
find_user_by_authentication_token
(
token_string
)
User
.
find_by_authentication_token
(
token_string
)
end
=======
def
find_oauth_access_token
return
@oauth_access_token
if
defined?
(
@oauth_access_token
)
token
=
Doorkeeper
::
OAuth
::
Token
.
from_request
(
doorkeeper_request
,
*
Doorkeeper
.
configuration
.
access_token_methods
)
return
@oauth_access_token
=
nil
unless
token
>>>>>>>
upstream
/
master
@oauth_access_token
=
OauthAccessToken
.
by_token
(
token
)
raise
UnauthorizedError
unless
@oauth_access_token
...
...
lib/api/helpers.rb
View file @
4d6e9ee5
...
...
@@ -397,7 +397,6 @@ module API
private
<<<<<<<
HEAD
def
private_token
params
[
APIGuard
::
PRIVATE_TOKEN_PARAM
]
||
env
[
APIGuard
::
PRIVATE_TOKEN_HEADER
]
end
...
...
@@ -420,8 +419,6 @@ module API
warden
.
try
(
:authenticate
)
if
verified_request?
end
=======
>>>>>>>
upstream
/
master
def
initial_current_user
return
@initial_current_user
if
defined?
(
@initial_current_user
)
...
...
@@ -432,7 +429,6 @@ module API
end
end
<<<<<<<
HEAD
def
find_current_user
user
=
find_user_by_private_token
(
scopes:
scopes_registered_for_endpoint
)
||
...
...
@@ -447,8 +443,6 @@ module API
user
end
=======
>>>>>>>
upstream
/
master
def
sudo!
return
unless
sudo_identifier
return
unless
initial_current_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