Skip to content

Conversation

@come-nc
Copy link
Contributor

@come-nc come-nc commented Sep 22, 2025

Summary

When delegating users to a group, these delegated admins see an empty "Admin delegation" section in the settings.
To fix this, I had to add a new type of settings, delegation. Unlike admin and personal, these settings do not appear in any menu but can still be used for admin delegation.
I did not add a new section type, because it works just fine to reuse admin sections for delegated settings. It can be added later if needed.

Checklist

@come-nc come-nc added this to the Nextcloud 33 milestone Sep 22, 2025
@come-nc come-nc self-assigned this Sep 22, 2025
@come-nc come-nc added 2. developing Work in progress 3. to review Waiting for reviews feature: settings and removed 2. developing Work in progress labels Sep 22, 2025
@come-nc come-nc marked this pull request as ready for review September 23, 2025 09:34
@come-nc come-nc requested review from CarlSchwan and nfebe and removed request for a team September 23, 2025 09:34
@come-nc come-nc requested a review from artonge September 25, 2025 15:47
@come-nc come-nc force-pushed the fix/hide-empty-settings-section branch 2 times, most recently from 02f42df to 4554c89 Compare September 26, 2025 14:41
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Adds a new type of settings, delegation, which is only used for admin
 delegation but does not appear in admin menu.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
… section

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Also renamed delegation into admin-delegation in xml schema.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc force-pushed the fix/hide-empty-settings-section branch from 4554c89 to 20e5368 Compare September 28, 2025 12:50
@come-nc come-nc merged commit 7a327b9 into master Sep 28, 2025
199 checks passed
@come-nc come-nc deleted the fix/hide-empty-settings-section branch September 28, 2025 17:02
@come-nc come-nc added the pending documentation This pull request needs an associated documentation update label Sep 28, 2025
@joshtrichards
Copy link
Member

I guess the xsd in the appstore (used for validation) is maintained independently. It's currently out-of-sync with the one in server:

https://github.com/nextcloud/appstore/blob/f702c1053bfe7e6bdebf4a5dcef17fa19a1eec3b/nextcloudappstore/api/v1/release/info.xsd#L411-L421

vitormattos added a commit to vitormattos/guests that referenced this pull request Sep 30, 2025
Fallback of:
- nextcloud/server#55261

Fixed:

PHP Fatal error:  Class OCA\Guests\FilteredSettingsManager contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCP\Settings\IManager::getAdminDelegatedSettings) in /var/www/html/apps-extra/guests/lib/FilteredSettingsManager.php on line 14

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: settings pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants