diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-10-02 16:04:04 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-10-02 16:17:28 +0200 |
commit | 0ce28a574a4c747dc7a92fd3bb79cca55891c795 (patch) | |
tree | 709793217b9ed4a1c2cb8fb8f5f77efa821531a7 /apps | |
parent | c64101ff6e31f5302ea026b61505c877c6f804f0 (diff) | |
download | nextcloud-server-0ce28a574a4c747dc7a92fd3bb79cca55891c795.tar.gz nextcloud-server-0ce28a574a4c747dc7a92fd3bb79cca55891c795.zip |
if mountpoint is applicable to all users the old API expects a array with 'all'
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/config.php | 5 |
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; |