]> 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 fa2cb36873c755eee5bfc5e500da804602602b77..4d30d428998b69173583b33fec9e1c942ea51883 100644 (file)
@@ -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.'));
                }