feat: prevent deletion of roles with assigned users

This commit is contained in:
Moritz 2026-01-08 12:05:56 +01:00
parent 954fc4261a
commit b638a54bd6
Signed by: moritz
GPG key ID: 1020A035E5DD0824
5 changed files with 89 additions and 30 deletions

View file

@ -1983,6 +1983,12 @@ msgstr "Rolle erfolgreich gelöscht."
msgid "Roles"
msgstr "Rollen"
#: lib/mv_web/live/role_live/index.ex
#: lib/mv_web/live/role_live/show.ex
#, elixir-autogen, elixir-format
msgid "Cannot delete role. %{count} user(s) are still assigned to this role. Please assign them to another role first."
msgstr "Rolle kann nicht gelöscht werden. %{count} Benutzer*in(nen) sind dieser Rolle noch zugeordnet. Bitte weisen Sie sie zunächst einer anderen Rolle zu."
#~ #: lib/mv_web/live/member_live/form.ex
#~ #: lib/mv_web/live/member_live/show.ex
#~ #: lib/mv_web/translations/member_fields.ex