]> 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 304096b2ec0e57b337fc0cbe4a1470b347836ee1..b67b73dfdaa3ff9b5b60e1476eb0cc8fb623d3ad 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -32,9 +32,9 @@ use Friendica\Network\Probe as NetworkProbe;
  */
 class Probe extends BaseModule
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
-               if (!local_user()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a probing.'));
                }