Don't create invalid users

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/19424/head
Joas Schilling 6 years ago
parent 9205a21088
commit 08cadf8416
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 2
      lib/private/Files/View.php

@ -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);
}

Loading…
Cancel
Save