mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Fix build
Follow-up to bd3c0dd59f9034688d3ab70ff2317d4b910e9513.
This commit is contained in:
@ -785,7 +785,9 @@ class ApplicationController < ActionController::Base
|
||||
opts[:layout] = 'application' if opts[:layout] == 'no_ember'
|
||||
end
|
||||
|
||||
if !SiteSetting.login_required? || (current_user rescue false)
|
||||
@current_user = current_user rescue nil
|
||||
|
||||
if !SiteSetting.login_required? || @current_user
|
||||
key = "page_not_found_topics"
|
||||
if @topics_partial = Discourse.redis.get(key)
|
||||
@topics_partial = @topics_partial.html_safe
|
||||
|
Reference in New Issue
Block a user