Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-02-12 12:55:27 +0300
committerJoas Schilling <coding@schilljs.com>2020-02-12 12:55:27 +0300
commit08cadf84165dc30fdcb309764cdc923112b86d2f (patch)
treed92f4360a0d6b587dfb601d9cb7628fd04804be6 /lib/private/Files/View.php
parent9205a21088f67a7c8215e23bf4ff8fb54f13323d (diff)
Don't create invalid users
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r--lib/private/Files/View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 9151a5130a1..2c01c112ad4 100644
--- a/lib/private/Files/View.php
+++ b/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);
}