FEATURE: hide google search on 404 page for private instance
This commit is contained in:
parent
3e74a19b67
commit
a597f1fa30
|
@ -2,6 +2,8 @@ class ExceptionsController < ApplicationController
|
||||||
skip_before_filter :check_xhr, :preload_json
|
skip_before_filter :check_xhr, :preload_json
|
||||||
|
|
||||||
def not_found
|
def not_found
|
||||||
|
@hide_google = true if SiteSetting.login_required
|
||||||
|
|
||||||
# centralize all rendering of 404 into app controller
|
# centralize all rendering of 404 into app controller
|
||||||
raise Discourse::NotFound
|
raise Discourse::NotFound
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue