diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-31 15:55:43 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-31 15:55:43 +0200 |
| commit | 464dd4266bdc433805010b5dca428f4cb75c2a81 (patch) | |
| tree | 47fdf4f065960d49da015eafdf56cb817dcf9ea4 /config | |
| parent | 5f17f421b176d48ef556fb379f59bbb7d284b48e (diff) | |
Group user accounts by role
Replaces the two-way admin/user split with four groups ordered by
capability: administration, Redaktion, editors, alumni. alumni takes
precedence over capability in role_group, so a retired admin appears at the
bottom rather than the top.
Forms now offer the three roles as checkboxes rather than a single admin
checkbox, with a trailing hidden blank so an empty set can be posted, and
user_params permits roles only for admins. Three create buttons prefill the
common combinations.
Diffstat (limited to 'config')
| -rw-r--r-- | config/locales/de.yml | 29 | ||||
| -rw-r--r-- | config/locales/en.yml | 29 |
2 files changed, 50 insertions, 8 deletions
diff --git a/config/locales/de.yml b/config/locales/de.yml index cf93e05b..e15a08d2 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml | |||
| @@ -145,6 +145,10 @@ de: | |||
| 145 | restore_target_invalid: "Das Wiederherstellungsziel muss ein lebender Node sein" | 145 | restore_target_invalid: "Das Wiederherstellungsziel muss ein lebender Node sein" |
| 146 | destroy_outside_trash: "Nodes können nur aus dem Papierkorb gelöscht werden" | 146 | destroy_outside_trash: "Nodes können nur aus dem Papierkorb gelöscht werden" |
| 147 | attach_in_trash: "An einen Node im Papierkorb können keine Assets angehängt werden" | 147 | attach_in_trash: "An einen Node im Papierkorb können keine Assets angehängt werden" |
| 148 | user: | ||
| 149 | attributes: | ||
| 150 | roles: | ||
| 151 | unknown: "enthält unbekannte Rollen: %{list}" | ||
| 148 | related_asset: | 152 | related_asset: |
| 149 | attributes: | 153 | attributes: |
| 150 | headline: | 154 | headline: |
| @@ -276,11 +280,28 @@ de: | |||
| 276 | admin: "Admin?" | 280 | admin: "Admin?" |
| 277 | user: | 281 | user: |
| 278 | confirm_destroy: "Benutzer %{login} wirklich löschen?" | 282 | confirm_destroy: "Benutzer %{login} wirklich löschen?" |
| 283 | no_roles: "—" | ||
| 279 | index: | 284 | index: |
| 280 | admins: "Admins" | 285 | title: "Benutzerkonten" |
| 281 | create_admin: "Admin-Benutzer anlegen" | 286 | create_editor: "Editor-Konto anlegen" |
| 282 | users: "Benutzer" | 287 | create_redaktion: "Redaktions-Konto anlegen" |
| 283 | create_user: "Benutzer anlegen" | 288 | create_admin: "Admin-Konto anlegen" |
| 289 | group_admin: "Administration" | ||
| 290 | group_redaktion: "Redaktion" | ||
| 291 | group_editor: "Editors" | ||
| 292 | group_alumni: "Ehemalige" | ||
| 293 | group_empty: "— keine —" | ||
| 294 | labels: | ||
| 295 | roles: "Rollen" | ||
| 296 | roles: | ||
| 297 | admin: "Administration" | ||
| 298 | redaktion: "Redaktion" | ||
| 299 | alumni: "Ehemalig" | ||
| 300 | role_hints: | ||
| 301 | admin: "Benutzerverwaltung und Navigation, jeweils nach erneuter Bestätigung." | ||
| 302 | redaktion: "Darf in den geschützten Bereichen veröffentlichen." | ||
| 303 | alumni: "Kein Login mehr möglich; Zuschreibungen bleiben erhalten." | ||
| 304 | no_roles: "keine besonderen Rollen" | ||
| 284 | new: | 305 | new: |
| 285 | title: "Neuen Benutzer anlegen" | 306 | title: "Neuen Benutzer anlegen" |
| 286 | 307 | ||
diff --git a/config/locales/en.yml b/config/locales/en.yml index c3f515b5..f8b94a00 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml | |||
| @@ -92,6 +92,10 @@ en: | |||
| 92 | restore_target_invalid: "Restore target must be a living node" | 92 | restore_target_invalid: "Restore target must be a living node" |
| 93 | destroy_outside_trash: "Nodes are only destroyed from the Trash" | 93 | destroy_outside_trash: "Nodes are only destroyed from the Trash" |
| 94 | attach_in_trash: "Cannot attach assets to a node in the Trash" | 94 | attach_in_trash: "Cannot attach assets to a node in the Trash" |
| 95 | user: | ||
| 96 | attributes: | ||
| 97 | roles: | ||
| 98 | unknown: "contains unknown roles: %{list}" | ||
| 95 | related_asset: | 99 | related_asset: |
| 96 | attributes: | 100 | attributes: |
| 97 | headline: | 101 | headline: |
| @@ -224,11 +228,28 @@ en: | |||
| 224 | admin: "admin?" | 228 | admin: "admin?" |
| 225 | user: | 229 | user: |
| 226 | confirm_destroy: "Do you really want to destroy user %{login}?" | 230 | confirm_destroy: "Do you really want to destroy user %{login}?" |
| 231 | no_roles: "—" | ||
| 227 | index: | 232 | index: |
| 228 | admins: "Admins" | 233 | title: "User accounts" |
| 229 | create_admin: "Create admin user" | 234 | create_editor: "Create editor account" |
| 230 | users: "Users" | 235 | create_redaktion: "Create Redaktion account" |
| 231 | create_user: "Create user" | 236 | create_admin: "Create admin account" |
| 237 | group_admin: "Administration" | ||
| 238 | group_redaktion: "Redaktion" | ||
| 239 | group_editor: "Editors" | ||
| 240 | group_alumni: "Alumni" | ||
| 241 | group_empty: "— none —" | ||
| 242 | labels: | ||
| 243 | roles: "Roles" | ||
| 244 | roles: | ||
| 245 | admin: "Administration" | ||
| 246 | redaktion: "Redaktion" | ||
| 247 | alumni: "Alumnus" | ||
| 248 | role_hints: | ||
| 249 | admin: "User management and navigation, each behind a fresh confirmation." | ||
| 250 | redaktion: "May publish in the protected sections." | ||
| 251 | alumni: "Can no longer log in; attributions are preserved." | ||
| 252 | no_roles: "no special roles" | ||
| 232 | new: | 253 | new: |
| 233 | title: "Create new user" | 254 | title: "Create new user" |
| 234 | 255 | ||
