fixes #1191
This commit is contained in:
@@ -15,7 +15,7 @@ protected
|
|||||||
def api_check
|
def api_check
|
||||||
if request.format.to_s =~ /\/json|\/xml/
|
if request.format.to_s =~ /\/json|\/xml/
|
||||||
if CurrentUser.is_anonymous?
|
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
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user