Skip to content
Snippets Groups Projects
Commit 0ce28a57 authored by Björn Schießle's avatar Björn Schießle
Browse files

if mountpoint is applicable to all users the old API expects a array with 'all'

parent c64101ff
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment