mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:37:37 +08:00
FIX: broken 404 page. don't bother showing current_usre stuff
This commit is contained in:
@ -108,7 +108,7 @@ class ApplicationController < ActionController::Base
|
||||
# from the above rescue_from blocks will fail because that isn't valid json.
|
||||
render status: error, layout: false, text: (error == 404) ? build_not_found_page(error) : message
|
||||
else
|
||||
render text: build_not_found_page(error, current_user ? 'application' : 'no_js')
|
||||
render text: build_not_found_page(error, 'no_js')
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user