Merge pull request #19451 from nextcloud/backport/19424/stable18
[stable18] Don't create invalid users
This commit is contained in:
commit
0bc3ac4066
1 changed files with 1 additions and 1 deletions
|
@ -1392,7 +1392,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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue