if mountpoint is applicable to all users the old API expects a array with 'all'
This commit is contained in:
parent
c64101ff6e
commit
0ce28a574a
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue