Files
FreedomBox/freedombox/modules
Sunil Mohan Adapa b81b527e1b email: Required administrator for alias management
- Allowing users to squat on aliases for usernames that will be used in future
is undesirable as aliases are prioritized over user accounts by postfix.

Tests:

- Frontpage shortcut is not visible for managing email aliases admin and
non-admin accounts.

- The URL /apps/email/aliases/ is forbidden for non-admin accounts. Available
for admin accounts. /apps/email/aliases/<>/delete/ is also not available for
non-admin accounts.

- Listing the email aliases shows all aliases associated with all the user
accounts not just the current user.

  - List is sorted alphabetically by the name of the alias.

  - List shows alias as well as username it is mapping to with proper header
  labels.

  - A delete button is shown against each alias.

- Add new alias button is shown

  - As a default button.

  - + icon is shown.

  - Clicking it opens a modal dialog with the form.

  - Cancel button and close button work in the form.

- Add alias form is shown as part of a modal dialog.

  - User account is a choice field and values are all usernames sorted
  alphabetically.

  - Providing a wrong value in alias field such as "123" shown an error message.
  Only the form is refreshed and not the entire page.

  - Providing a proper value successfully submits the form and refresh the page
  showing the newly create alias. Alias database is properly updated.

- Delete alias button works. Removes the alias and refresh the page without any
confirmation.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
[jvalleroy: Use re_path for alias-delete route]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2026-11-28 08:35:05 -05:00
..