From 0ce28a574a4c747dc7a92fd3bb79cca55891c795 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 2 Oct 2015 16:04:04 +0200 Subject: [PATCH] if mountpoint is applicable to all users the old API expects a array with 'all' --- apps/files_external/lib/config.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index afea7ead4e..457fd58f0f 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;