From a597f1fa3021f0190adef81fd553439810ccb8fd Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Sat, 6 Sep 2014 15:12:18 +0530 Subject: [PATCH] FEATURE: hide google search on 404 page for private instance --- app/controllers/exceptions_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/exceptions_controller.rb b/app/controllers/exceptions_controller.rb index 1e28bef5e7f..d04c4214d22 100644 --- a/app/controllers/exceptions_controller.rb +++ b/app/controllers/exceptions_controller.rb @@ -2,6 +2,8 @@ class ExceptionsController < ApplicationController skip_before_filter :check_xhr, :preload_json def not_found + @hide_google = true if SiteSetting.login_required + # centralize all rendering of 404 into app controller raise Discourse::NotFound end