diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-02 18:40:50 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-02 18:40:50 +0200 |
commit | 94013ffb82575b625334bdb57e6a7b9d2b9634bd (patch) | |
tree | d1dcbf6719588171581d32c96b4bb0919f32dac3 /apps | |
parent | 60c776070eedb7380fef89fd66493d651b41f3cd (diff) | |
parent | 0ce28a574a4c747dc7a92fd3bb79cca55891c795 (diff) | |
download | nextcloud-server-94013ffb82575b625334bdb57e6a7b9d2b9634bd.tar.gz nextcloud-server-94013ffb82575b625334bdb57e6a7b9d2b9634bd.zip |
Merge pull request #19534 from owncloud/fix_19532
if the mountpoint is accessible for all user the array should contain '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; |