mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Revert "FIX: preview theme not working consistently"
This reverts commit 845cec3ba02276cc704ba69c01ad75f8eb22df75. was not a needed change, but was elsewhere
This commit is contained in:
@ -307,13 +307,7 @@ class ApplicationController < ActionController::Base
|
||||
resolve_safe_mode
|
||||
return if request.env[NO_CUSTOM]
|
||||
|
||||
theme_key = nil
|
||||
if (k = request[:preview_theme_key]) && current_user
|
||||
# some extra security, only to use the magic param the key needs to be whitelisted
|
||||
if k == $redis.get(::Admin::ThemesController.whitelist_theme_key(current_user))
|
||||
theme_key = k
|
||||
end
|
||||
end
|
||||
theme_key = flash[:preview_theme_key]
|
||||
|
||||
user_option = current_user&.user_option
|
||||
|
||||
|
Reference in New Issue
Block a user