summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-12-02 14:25:48 +0100
committerRobin Appelman <robin@icewind.nl>2020-12-02 14:25:48 +0100
commit8d962579db3f2e38a6e6780f47c454a0168a31d3 (patch)
treee01b46142853a0eba6604d621e8226a73c2d5150 /apps/files_external
parentd8b8c9895b1069b6baf7a914b01d0f68930d0acf (diff)
downloadnextcloud-server-8d962579db3f2e38a6e6780f47c454a0168a31d3.tar.gz
nextcloud-server-8d962579db3f2e38a6e6780f47c454a0168a31d3.zip
set mountid for personal external storage mounts
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Config/ConfigAdapter.php3
-rw-r--r--apps/files_external/lib/Lib/PersonalMount.php5
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_external/lib/Config/ConfigAdapter.php b/apps/files_external/lib/Config/ConfigAdapter.php
index a1266c647bb..a43d13d3e7f 100644
--- a/apps/files_external/lib/Config/ConfigAdapter.php
+++ b/apps/files_external/lib/Config/ConfigAdapter.php
@@ -166,7 +166,8 @@ class ConfigAdapter implements IMountProvider {
'/' . $user->getUID() . '/files' . $storageConfig->getMountPoint(),
null,
$loader,
- $storageConfig->getMountOptions()
+ $storageConfig->getMountOptions(),
+ $storageConfig->getId()
);
} else {
return new ExternalMountPoint(
diff --git a/apps/files_external/lib/Lib/PersonalMount.php b/apps/files_external/lib/Lib/PersonalMount.php
index 37a6661601c..8f3a127632e 100644
--- a/apps/files_external/lib/Lib/PersonalMount.php
+++ b/apps/files_external/lib/Lib/PersonalMount.php
@@ -55,9 +55,10 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount {
$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;
}