From: Michael Date: Sat, 4 Dec 2021 04:30:46 +0000 (+0000) Subject: Issue 11063: Fix check for current user X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=799baeda1087e03742ed6687f068268bdc30fb1d;p=friendica.git Issue 11063: Fix check for current user --- diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index db5f191cf1..233edeec8a 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -88,7 +88,7 @@ class BaseApi extends BaseModule case Router::PUT: self::checkAllowedScope(self::SCOPE_WRITE); - if (!$this->app->isLoggedIn()) { + if (!self::getCurrentUserID()) { throw new HTTPException\ForbiddenException($this->t('Permission denied.')); } break;