Skip to content

Commit 87bad33

Browse files
Merge pull request #52047 from nextcloud/sub-mount-filter-no-storage
2 parents 206aac5 + c1dbc27 commit 87bad33

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/private/Files/View.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,8 +1466,7 @@ public function getFileInfo($path, $includeMountPoints = true) {
14661466
public function addSubMounts(FileInfo $info, $extOnly = false): void {
14671467
$mounts = Filesystem::getMountManager()->findIn($info->getPath());
14681468
$info->setSubMounts(array_filter($mounts, function (IMountPoint $mount) use ($extOnly) {
1469-
$subStorage = $mount->getStorage();
1470-
return !($extOnly && $subStorage instanceof \OCA\Files_Sharing\SharedStorage);
1469+
return !($extOnly && $mount instanceof SharedMount);
14711470
}));
14721471
}
14731472

0 commit comments

Comments
 (0)