1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00

Fix unauthorized return code

This commit is contained in:
Jason Denney 2014-02-02 17:09:13 -05:00
parent 9edb90203c
commit 4b5133fd02

View File

@ -11,7 +11,7 @@ class Api::V1::BaseController < ActionController::Base
if @current_user.nil?
msg = "Username/Password/Token invalid"
render :json => {:error => msg }, :status => 403 and return
render :json => {:error => msg }, :status => 401 and return
end
else
authenticate_user!