mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
Changed scope
This commit is contained in:
parent
ec5bd9a756
commit
57353eb9b0
33 changed files with 95 additions and 91 deletions
|
@ -51,9 +51,7 @@ class Index extends BaseSearch
|
|||
}
|
||||
|
||||
if (DI::config()->get('system', 'local_search') && !Session::isAuthenticated()) {
|
||||
$e = new HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a search.'));
|
||||
$e->httpdesc = DI::l10n()->t('Public access denied.');
|
||||
throw $e;
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a search.'));
|
||||
}
|
||||
|
||||
if (DI::config()->get('system', 'permit_crawling') && !Session::isAuthenticated()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue