]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Probe.php
Merge pull request #12956 from annando/server-blocked
[friendica.git] / src / Module / Debug / Probe.php
index 2c04fff91d35a254a57d76f3e07321a00b2b2e40..b67b73dfdaa3ff9b5b60e1476eb0cc8fb623d3ad 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -23,7 +23,6 @@ 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;
@@ -35,7 +34,7 @@ class Probe extends BaseModule
 {
        protected function content(array $request = []): string
        {
-               if (!Session::getLocalUser()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a probing.'));
                }