]> git.mxchange.org Git - friendica.git/commitdiff
New switch that restricts the search only for registered users
authorMichael Vogel <icarus@dabo.de>
Sat, 5 Sep 2015 02:29:37 +0000 (04:29 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 5 Sep 2015 02:29:37 +0000 (04:29 +0200)
mod/search.php

index d9a2852dd4af4e92f078296752763142ef5486c8..251dd4778f37b52545d2ee817e408ba2df47d617 100644 (file)
@@ -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');