summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/config.php')
-rw-r--r--apps/files_external/lib/config.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index ddfab439879..8eb968e2d4b 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -490,6 +490,11 @@ class OC_Mount_Config {
return false;
}
+ if (isset($classOptions['objectstore'])) {
+ // objectstore cannot be set by client side
+ return false;
+ }
+
if (!isset($backends[$class])) {
// invalid backend
return false;
@@ -843,6 +848,13 @@ class OC_Mount_Config {
$mountPoint[$applicable][$mountPath]['priority']
= $data[$mountType][$applicable][$mountPath]['priority'];
}
+ // Persistent objectstore
+ if (isset($data[$mountType][$applicable][$mountPath])
+ && isset($data[$mountType][$applicable][$mountPath]['objectstore'])
+ ) {
+ $mountPoint[$applicable][$mountPath]['objectstore']
+ = $data[$mountType][$applicable][$mountPath]['objectstore'];
+ }
$data[$mountType][$applicable]
= array_merge($data[$mountType][$applicable], $mountPoint[$applicable]);
} else {