FIX: Check active themes for all requests

Previously, the list of active themes was only used in html views. Now we have theme modifiers, themes can affect .json routes.
This commit is contained in:
David Taylor 2020-04-03 15:50:13 +01:00
parent 4500928a39
commit 91fff746a4
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434

View File

@ -376,8 +376,7 @@ class ApplicationController < ActionController::Base
end
def handle_theme
return if request.xhr? || request.format == "json" || request.format == "js"
return if request.method != "GET"
return if request.format == "js"
resolve_safe_mode
return if request.env[NO_CUSTOM]