summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php')
-rw-r--r--lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
index dba1dfc28e5..9bbb744bbcc 100644
--- a/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
+++ b/lib/private/Files/Mount/ObjectStorePreviewCacheMountProvider.php
@@ -55,6 +55,9 @@ class ObjectStorePreviewCacheMountProvider implements IRootMountProvider {
if (!is_array($this->config->getSystemValue('objectstore_multibucket'))) {
return [];
}
+ if ($this->config->getSystemValue('objectstore.multibucket.preview-distribution', false) !== true) {
+ return [];
+ }
$instanceId = $this->config->getSystemValueString('instanceid', '');
$mountPoints = [];