Merge pull request #55647 from nextcloud/backport/55602/stable31

[stable31] [internal] Fix admin delegation show all priority items
pull/55737/head
Stephan Orbaugh 2025-10-14 12:14:37 +07:00 committed by GitHub
commit 4780ed13ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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));
}
}