Skip to content

Commit b98479a

Browse files
committed
fixup! feat(mounts): optimize load of mounts by filtering on database side
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
1 parent 8edae4b commit b98479a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Config/UserMountCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public function getMountsForFileId($fileId, $user = null) {
393393

394394
$mounts = [];
395395
while ($row = $result->fetch()) {
396-
if (!$this->userManager->userExists($row['user_id'])) {
396+
if ($user === null && !$this->userManager->userExists($row['user_id'])) {
397397
continue;
398398
}
399399

0 commit comments

Comments
 (0)