From 464dd4266bdc433805010b5dca428f4cb75c2a81 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 31 Jul 2026 15:55:43 +0200 Subject: 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. --- test/fixtures/users.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/fixtures/users.yml') diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index 7276bcb4..f8d32d3c 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -13,5 +13,4 @@ aaron: salt: 5be6f9cdd04fd7ab3c91cd32a5334ba2339b8005 crypted_password: 740a48caf7dd5ff11318d812d57c0a0928cfbc12 # 'monkey' created_at: 2024-01-02 00:00:00 - admin: true - + roles: ["admin", "redaktion"] -- cgit v1.3