fix atom feeds

This commit is contained in:
albert
2013-03-20 22:05:02 -07:00
parent 277c918062
commit 27dfeb75b1

View File

@@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base
protected 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 => "401 Not Authorized\n", :layout => false, :status => 401
return false return false