mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Revert "fix the build"
This reverts commit 8b74c7d325ace3ad5deaebdec50d015ca09299fc.
This commit is contained in:
@ -167,6 +167,12 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
render_json_error I18n.t(opts[:custom_message] || type), type: type, status: status_code
|
||||
else
|
||||
begin
|
||||
current_user
|
||||
rescue Discourse::InvalidAccess
|
||||
return render plain: I18n.t(type), status: status_code
|
||||
end
|
||||
|
||||
render html: build_not_found_page(status_code, opts[:include_ember] ? 'application' : 'no_ember')
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user