Commit 2e1c3c52bc43d08bc01cf3ba5fba377b3236223b
1 parent
e9c35609
Exists in
master
and in
4 other branches
#1606 Fixes
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/api/helpers.rb
| 1 | module Gitlab | 1 | module Gitlab |
| 2 | module APIHelpers | 2 | module APIHelpers |
| 3 | def current_user | 3 | def current_user |
| 4 | - @current_user ||= User.find_by_authentication_token(params[:private_token] || header[:private_token]) | 4 | + @current_user ||= User.find_by_authentication_token(params[:private_token] || header["private_token"]) |
| 5 | end | 5 | end |
| 6 | 6 | ||
| 7 | def user_project | 7 | def user_project |