Skip to content

feat(aliases): add admin setting to disable alias creation#12764

Draft
bromiesTM wants to merge 1 commit intonextcloud:mainfrom
IONOS-Productivity:feature/configure-alias-creation
Draft

feat(aliases): add admin setting to disable alias creation#12764
bromiesTM wants to merge 1 commit intonextcloud:mainfrom
IONOS-Productivity:feature/configure-alias-creation

Conversation

@bromiesTM
Copy link
Copy Markdown

Introduces an allow_new_mail_aliases app config flag (default: yes) that lets administrators prevent users from creating new mail aliases.

  • Backend: guard in AliasesService::create() throws ClientException when disabled
  • Admin UI: toggle switch in AdminSettings, mirroring the existing "allow new mail accounts" setting
  • Frontend: hides the "Add alias" button when disabled
  • Exposed via PageController initial state and storable via occ config:app:set

Extends existing unit tests for AliasesService, AdminSettings, and PageController to cover the new setting.

@ChristophWurst
Copy link
Copy Markdown
Member

Thank you for sending a pull request

@ChristophWurst
Copy link
Copy Markdown
Member

Please point your agent to https://github.com/nextcloud/mail/blob/main/AGENTS.md#git-workflow in case you didn't open it from this repo's root. Agentic AI has to be transparent in commit messages.

@bromiesTM bromiesTM force-pushed the feature/configure-alias-creation branch from 982dac4 to 93543cf Compare April 16, 2026 12:48
Introduces an `allow_new_mail_aliases` app config flag (default: yes)
that lets administrators prevent users from creating new mail aliases.

- Backend: guard in AliasesService::create() throws ClientException when disabled
- Admin UI: toggle switch in AdminSettings, mirroring the existing
  "allow new mail accounts" setting
- Frontend: hides the "Add alias" button when disabled
- Exposed via PageController initial state and storable via occ config:app:set

Extends existing unit tests for AliasesService, AdminSettings, and
PageController to cover the new setting.

AI-assisted: Claude Code (Claude Sonnet 4.6)
Co-Authored-By: Kai Henseler <kai.henseler@strato.de>
Signed-off-by: Matthias Sauer <sauerm@strato.de>
@bromiesTM bromiesTM force-pushed the feature/configure-alias-creation branch from 93543cf to eea743b Compare April 16, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants