fix(settings): Fix admin delegation for hidden sections

Webhooks and users did not appear anymore in admin delegation because
only admin sections were considered and not the new delegation sections.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-05-05 12:01:31 +02:00 committed by backportbot[bot]
parent 38dba45e83
commit ea15acaa53

View file

@ -328,6 +328,7 @@ class Manager implements IManager {
*/
public function getAdminDelegatedSettings(): array {
$sections = $this->getAdminSections();
$sections[self::SETTINGS_DELEGATION] = $this->getSections(self::SETTINGS_DELEGATION);
$settings = [];
foreach ($sections as $sectionPriority) {
foreach ($sectionPriority as $section) {