From 715d1a42fe7d09120c2050a681b24ccce72e179b Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 19 Jun 2013 14:09:07 -0700 Subject: [PATCH] fixes #1764, removes login prereq for api suage --- app/controllers/application_controller.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 960c2935f..82cfd16ee 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -16,11 +16,6 @@ class ApplicationController < ActionController::Base protected def api_check if request.format.to_s =~ /\/json|\/xml/ - if CurrentUser.is_anonymous? - render :text => "403 Forbidden\n", :layout => false, :status => 403 - return false - end - if ApiLimiter.throttled?(request.remote_ip) render :text => "421 User Throttled\n", :layout => false, :status => 421 return false