summaryrefslogtreecommitdiff
path: root/lib/tasks/development_init.rake
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-31 15:55:43 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-31 15:55:43 +0200
commit464dd4266bdc433805010b5dca428f4cb75c2a81 (patch)
tree47fdf4f065960d49da015eafdf56cb817dcf9ea4 /lib/tasks/development_init.rake
parent5f17f421b176d48ef556fb379f59bbb7d284b48e (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 'lib/tasks/development_init.rake')
-rw-r--r--lib/tasks/development_init.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/development_init.rake b/lib/tasks/development_init.rake
index 94f323c3..91797d9b 100644
--- a/lib/tasks/development_init.rake
+++ b/lib/tasks/development_init.rake
@@ -19,7 +19,7 @@ namespace :cccms do
19 :email => 'admin@cccms.de', 19 :email => 'admin@cccms.de',
20 :password => 'foobar', 20 :password => 'foobar',
21 :password_confirmation => 'foobar', 21 :password_confirmation => 'foobar',
22 :admin => true 22 :roles => ["admin", "redaktion"]
23 ) 23 )
24 end 24 end
25 25