]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Probe.php
Replace PostUpdate key-value config entries with key-value pair entries
[friendica.git] / src / Module / Debug / Probe.php
index 07f82eaacdd2b525ee7c72ca7f2bb067683d52db..4d30d428998b69173583b33fec9e1c942ea51883 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -34,7 +34,7 @@ class Probe extends BaseModule
 {
        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.'));
                }