Merge pull request #19424 from nextcloud/bugfix/noid/dont-create-invalid-users

Don't create invalid users
This commit is contained in:
Roeland Jago Douma 2020-02-12 20:26:57 +01:00 committed by GitHub
commit 1db39e4eb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1392,7 +1392,7 @@ class View {
}
$ownerId = $storage->getOwner($internalPath);
$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
$owner = $this->getUserObjectForOwner($ownerId);
}