mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:43:16 +08:00
FIX: broken 404 page. don't bother showing current_usre stuff
This commit is contained in:
parent
7562697834
commit
9545e2e46e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user