mirror of
https://github.com/friendica/friendica
synced 2024-11-10 08:22:57 +00:00
New switch that restricts the search only for registered users
This commit is contained in:
parent
94dcccd1b9
commit
d9f23dbb20
1 changed files with 7 additions and 0 deletions
|
@ -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');
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue