mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Merge pull request #2761 from techAPJ/patch-2
FEATURE: hide google search on 404 page for private instance
This commit is contained in:
commit
fb7fbd3c96
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue