From a9e44bb57acb7795dcdfa4b62ecb14dd6b510f06 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 12 Feb 2020 10:55:27 +0100 Subject: [PATCH] Don't create invalid users Signed-off-by: Joas Schilling --- lib/private/Files/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 8322576c5c..c173cde2d2 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -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); }