Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
8b6cab292559
Commit
2e1c3c52
authored
Oct 02, 2012
by
Valeriy Sizov
Browse files
#1606 Fixes
parent
5d3d235e2e6a
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/api/helpers.rb
View file @
8b6cab29
module
Gitlab
module
APIHelpers
def
current_user
@current_user
||=
User
.
find_by_authentication_token
(
params
[
:private_token
]
||
header
[
:
private_token
])
@current_user
||=
User
.
find_by_authentication_token
(
params
[
:private_token
]
||
header
[
"
private_token
"
])
end
def
user_project
...
...
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