Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: don't return other mounts from share mount provider
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Apr 11, 2025
commit 51b52d824803a9f60ce22c839273b4a1d24eec0b
7 changes: 4 additions & 3 deletions apps/files_sharing/lib/MountProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {

$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());
Expand Down Expand Up @@ -90,7 +91,7 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {
$shareId = (int)$parentShare->getId();
$mount = new SharedMount(
'\OCA\Files_Sharing\SharedStorage',
$mounts,
array_merge($mounts, $otherMounts),
[
'user' => $user->getUID(),
// parent share
Expand All @@ -105,7 +106,7 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {
$foldersExistCache,
$this->eventDispatcher,
$user,
($shareId <= $maxValidatedShare)
($shareId <= $maxValidatedShare),
);

$newMaxValidatedShare = max($shareId, $newMaxValidatedShare);
Expand Down
Loading