mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: don't return other mounts from share mount provider
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
2ea3491240
commit
1185b5ee35
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue