From d9f23dbb20098db18c495cf39237662c1a6adca3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 5 Sep 2015 04:29:37 +0200 Subject: [PATCH] New switch that restricts the search only for registered users --- mod/search.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mod/search.php b/mod/search.php index d9a2852dd..251dd4778 100644 --- a/mod/search.php +++ b/mod/search.php @@ -94,6 +94,13 @@ function search_content(&$a) { return; } + if(get_config('system','local_search') AND !local_user()) { + notice(t('Public access denied.').EOL); + return; + //http_status_exit(403); + //killme(); + } + nav_set_selected('search');