Merge pull request #11066 from annando/issue-11063
Issue 11063: Fix check for current user
This commit is contained in:
commit
ba98242b9f
@ -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…
x
Reference in New Issue
Block a user