mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 16:35:37 -05:00
Merge pull request #56043 from nextcloud/backport/55462/stable32
[stable32] Fix admin delegation show all priority items
This commit is contained in:
commit
56256aa8a3
1 changed files with 2 additions and 1 deletions
|
|
@ -112,6 +112,7 @@ class Show extends Base {
|
|||
return [
|
||||
'name' => $setting->getName() ?: 'Global',
|
||||
'className' => $className,
|
||||
'priority' => $setting->getPriority(),
|
||||
'delegatedGroups' => $groups,
|
||||
];
|
||||
}, $settings);
|
||||
|
|
@ -155,6 +156,6 @@ class Show extends Base {
|
|||
* @param array $innerSection
|
||||
*/
|
||||
private function getDelegatedSettings(array $settings, array $innerSection): array {
|
||||
return $settings + array_filter($innerSection, fn (ISettings $setting) => $setting instanceof IDelegatedSettings);
|
||||
return array_merge($settings, array_filter($innerSection, fn (ISettings $setting) => $setting instanceof IDelegatedSettings));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue