feat: prevent deletion of roles with assigned users
All checks were successful
continuous-integration/drone/push Build is passing

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

View file

@ -1994,3 +1994,9 @@ msgstr "Rolle erfolgreich gelöscht."
#, elixir-autogen, elixir-format, fuzzy
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."

View file

@ -1995,3 +1995,9 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Roles"
msgstr ""
#: 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 ""

View file

@ -1995,3 +1995,9 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy
msgid "Roles"
msgstr ""
#: 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 ""