This commit is contained in:
albert
2013-04-04 17:49:39 -04:00
parent 83901514e8
commit 374e96c2fe

View File

@@ -15,7 +15,7 @@ protected
def api_check
if request.format.to_s =~ /\/json|\/xml/
if CurrentUser.is_anonymous?
render :text => "401 Not Authorized\n", :layout => false, :status => 401
render :text => "403 Forbidden\n", :layout => false, :status => 403
return false
end