diff options
author | Robin Appelman <robin@icewind.nl> | 2025-04-11 14:20:10 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-04-11 14:21:31 +0200 |
commit | 51b52d824803a9f60ce22c839273b4a1d24eec0b (patch) | |
tree | 25021411ae9c085e499343989eaa3089bb79860b | |
parent | d125e81ed132bb2ec2998730b28e7b89aeac6af5 (diff) | |
download | nextcloud-server-backport/52045/stable31.tar.gz nextcloud-server-backport/52045/stable31.zip |
fix: don't return other mounts from share mount providerbackport/52045/stable31
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | apps/files_sharing/lib/MountProvider.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php index ea99023676b..91c392de6eb 100644 --- a/apps/files_sharing/lib/MountProvider.php +++ b/apps/files_sharing/lib/MountProvider.php @@ -60,7 +60,8 @@ class MountProvider implements IMountProvider { $superShares = $this->buildSuperShares($shares, $user); - $mounts = $this->mountManager->getAll(); + $otherMounts = $this->mountManager->getAll(); + $mounts = []; $view = new View('/' . $user->getUID() . '/files'); $ownerViews = []; $sharingDisabledForUser = $this->shareManager->sharingDisabledForUser($user->getUID()); @@ -90,7 +91,7 @@ class MountProvider implements IMountProvider { $shareId = (int)$parentShare->getId(); $mount = new SharedMount( '\OCA\Files_Sharing\SharedStorage', - $mounts, + array_merge($mounts, $otherMounts), [ 'user' => $user->getUID(), // parent share @@ -105,7 +106,7 @@ class MountProvider implements IMountProvider { $foldersExistCache, $this->eventDispatcher, $user, - ($shareId <= $maxValidatedShare) + ($shareId <= $maxValidatedShare), ); $newMaxValidatedShare = max($shareId, $newMaxValidatedShare); |