mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
fix #1125 where rest/xml request were being rejected by the new csrf code of rails
This commit is contained in:
parent
fed7483063
commit
898dbe01c6
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue