feat(settings): implement IDelegatedSettings for password policy settings - #1023
Open
printminion-co wants to merge 1 commit into
Open
Conversation
…ings Signed-off-by: Kai Henseler <kai.henseler@strato.de>
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements
IDelegatedSettingsfor the password policy admin settings page (OCA\Password_Policy\Settings\Settings), instead of the plainISettingsinterface. This allows an administrator to delegate management of the password policy to a non-admin user or group via the admin delegation feature, without granting full admin rights.getName()returns the translated section label,Password Policy.getAuthorizedAppConfig()returns[]— no app config keys are exposed for direct delegated editing beyond the settings form itself.IL10Nis added as a promoted constructor parameter for the label; it is autowired, so no DI registration change is needed.#[\Override]is set on both new methods, matching the rest of the class.Companion to nextcloud/bruteforcesettings#1246, which makes the same change for the brute-force IP allowlist settings.
AI disclosure
This change was prepared with AI assistance (Claude Code): the cherry-pick and rebase mechanics onto current
master, the#[\Override]consistency fix, and this PR description. The underlying code change and the DCO sign-off are from a human contributor.Testing
composer lint— cleancomposer cs:check— clean, 0 of 41 files need fixingcomposer psalmwas not run locally: the pinned Psalm requires PHP >= 8.3.16 and the available container has PHP 8.3.6. Note thatmasteralready reports aDocblockTypeContradictionatlib/Validator/HIBPValidator.php:54independently of this change; it is not addressed here.composer test:unitwas not run locally: the bootstrap needs an installed Nextcloud instance. No existing test touches this settings class.