New switch that restricts the search only for registered users

This commit is contained in:
Michael Vogel 2015-09-05 04:29:37 +02:00
parent 94dcccd1b9
commit d9f23dbb20

View file

@ -94,6 +94,13 @@ function search_content(&$a) {
return; 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'); nav_set_selected('search');