Skip to content

Commit

Permalink
Merge pull request #24513 from nextcloud/backport/24501/stable20
Browse files Browse the repository at this point in the history
[stable20] set mountid for personal external storage mounts
  • Loading branch information
MorrisJobke authored Dec 2, 2020
2 parents bdbb60a + 987cd0d commit 54ab2b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/files_external/lib/Config/ConfigAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {
'/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(),
null,
$loader,
$storageConfig->getMountOptions()
$storageConfig->getMountOptions(),
$storageConfig->getId()
);
} else {
return new ExternalMountPoint(
Expand Down
5 changes: 3 additions & 2 deletions apps/files_external/lib/Lib/PersonalMount.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ public function __construct(
$mountpoint,
$arguments = null,
$loader = null,
$mountOptions = null
$mountOptions = null,
$mountId = null
) {
parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions);
parent::__construct($storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId);
$this->storagesService = $storagesService;
$this->numericStorageId = $storageId;
}
Expand Down

0 comments on commit 54ab2b9

Please sign in to comment.