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 /app/helpers | |
| 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 'app/helpers')
| -rw-r--r-- | app/helpers/users_helper.rb | 9 |
1 files changed, 0 insertions, 9 deletions
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 @@ | |||
| 1 | module UsersHelper | ||
| 2 | def user_list_by_admin_status | ||
| 3 | if current_user && current_user.admin | ||
| 4 | render :partial => 'admin_user_item', :collection => @users | ||
| 5 | else | ||
| 6 | render :partial => 'user_item', :collection => @users | ||
| 7 | end | ||
| 8 | end | ||
| 9 | end | ||
