Merge pull request #11066 from annando/issue-11063
Issue 11063: Fix check for current user
This commit is contained in:
commit
ba98242b9f
1 changed files with 1 additions and 1 deletions
|
@ -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