Fix #6526: Only store redirect location if not in JSON format (#6528)

This commit is contained in:
Eugen Rochko 2018-02-22 00:51:30 +01:00 committed by GitHub
parent 90f12f2e5a
commit d8bc64bb09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ class ApplicationController < ActionController::Base
end
def store_current_location
store_location_for(:user, request.url)
store_location_for(:user, request.url) unless request.format == :json
end
def require_admin!