diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-02 19:08:04 +0400 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-02 19:08:04 +0400 |
commit | 2e1c3c52bc43d08bc01cf3ba5fba377b3236223b (patch) | |
tree | c4775fbe2377200068b28560f620d2d74103eb72 /lib | |
parent | e9c356092bfa1545f4df35f11fb54dc121f825b2 (diff) |
#1606 Fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 78d93b65f89..e9fec8b3a92 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -1,7 +1,7 @@ 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 |