This commit is contained in:
Valeriy Sizov 2012-10-02 18:08:04 +03:00
parent e9c356092b
commit 2e1c3c52bc

View file

@ -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