fix #1125 where rest/xml request were being rejected by the new csrf code of rails

This commit is contained in:
Reinier Balt 2011-03-26 17:34:54 +01:00
parent 88e994133d
commit 91fda2ee36

View file

@ -184,7 +184,13 @@ class ApplicationController < ActionController::Base
return saved ? todo : nil
end
def handle_unverified_request
unless request.format=="application/xml"
super # handle xml http auth via our own login code
end
end
protected
def admin_login_required