Issue 11063: Fix check for current user
This commit is contained in:
parent
00f8b620dc
commit
799baeda10
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue