New switch that restricts the search only for registered users
This commit is contained in:
parent
94dcccd1b9
commit
d9f23dbb20
|
@ -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');
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue