old boot.php functions replaced in src/module (2)
This commit is contained in:
committed by
Hypolite Petovan
parent
b36d4eb0dd
commit
c9f17e1ef5
@@ -23,6 +23,7 @@ namespace Friendica\Module\Debug;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\DI;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Network\Probe as NetworkProbe;
|
||||
@@ -34,7 +35,7 @@ class Probe extends BaseModule
|
||||
{
|
||||
protected function content(array $request = []): string
|
||||
{
|
||||
if (!local_user()) {
|
||||
if (!Session::getLocalUser()) {
|
||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a probing.'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user