aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/config.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index afea7ead4e6..457fd58f0f8 100644
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -207,6 +207,11 @@ class OC_Mount_Config {
'groups' => $storage->getApplicableGroups(),
'users' => $storage->getApplicableUsers(),
];
+ // if mountpoint is applicable to all users the old API expects ['all']
+ if (empty($mountEntry['applicable']['groups']) && empty($mountEntry['applicable']['users'])) {
+ $mountEntry['applicable']['users'] = ['all'];
+ }
+
$mountEntry['id'] = $storage->getId();
return $mountEntry;