зеркало из https://github.com/nextcloud/server.git
Merge pull request #19534 from owncloud/fix_19532
if the mountpoint is accessible for all user the array should contain 'all'
This commit is contained in:
Коммит
94013ffb82
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче