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. --- app/helpers/users_helper.rb | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 app/helpers/users_helper.rb (limited to 'app/helpers/users_helper.rb') diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb deleted file mode 100644 index ff031387..00000000 --- a/app/helpers/users_helper.rb +++ /dev/null @@ -1,9 +0,0 @@ -module UsersHelper - def user_list_by_admin_status - if current_user && current_user.admin - render :partial => 'admin_user_item', :collection => @users - else - render :partial => 'user_item', :collection => @users - end - end -end -- cgit v1.3