Skip to content
Merged
Changes from all commits
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
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