Don't create invalid users

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-02-12 10:55:27 +01:00 committed by backportbot[bot]
parent c003a740cb
commit 47b292b214

View file

@ -1390,7 +1390,7 @@ class View {
} }
$ownerId = $storage->getOwner($internalPath); $ownerId = $storage->getOwner($internalPath);
$owner = null; $owner = null;
if ($ownerId !== null) { if ($ownerId !== null && $ownerId !== false) {
// ownerId might be null if files are accessed with an access token without file system access // ownerId might be null if files are accessed with an access token without file system access
$owner = $this->getUserObjectForOwner($ownerId); $owner = $this->getUserObjectForOwner($ownerId);
} }