1
0
Fork 0
mirror of https://git.friendi.ca/friendica/friendica.git synced 2025-08-18 03:34:01 +00:00

Issue 11063: Fix check for current user

This commit is contained in:
Michael 2021-12-04 04:30:46 +00:00
parent 00f8b620dc
commit 799baeda10

View file

@ -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;