From: Michael Vogel Date: Sat, 5 Sep 2015 02:29:37 +0000 (+0200) Subject: New switch that restricts the search only for registered users X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d9f23dbb20098db18c495cf39237662c1a6adca3;p=friendica.git New switch that restricts the search only for registered users --- diff --git a/mod/search.php b/mod/search.php index d9a2852dd4..251dd4778f 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');