From 2e1c3c52bc43d08bc01cf3ba5fba377b3236223b Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Tue, 2 Oct 2012 18:08:04 +0300 Subject: [PATCH] #1606 Fixes --- lib/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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