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;