mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: don't construct storage when checking if a sub-mount is applicable
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
403c33a640
commit
c1dbc27fd6
1 changed files with 1 additions and 2 deletions
|
|
@ -1466,8 +1466,7 @@ class View {
|
|||
public function addSubMounts(FileInfo $info, $extOnly = false): void {
|
||||
$mounts = Filesystem::getMountManager()->findIn($info->getPath());
|
||||
$info->setSubMounts(array_filter($mounts, function (IMountPoint $mount) use ($extOnly) {
|
||||
$subStorage = $mount->getStorage();
|
||||
return !($extOnly && $subStorage instanceof \OCA\Files_Sharing\SharedStorage);
|
||||
return !($extOnly && $mount instanceof SharedMount);
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue