Merge pull request #19453 from nextcloud/backport/19424/stable16
[stable16] Don't create invalid users
This commit is contained in:
commit
16025e3af0
|
@ -1390,7 +1390,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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue