From 71e62dddcfc7f9f527fab4158f8922deb32b5249 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sat, 25 Apr 2020 21:06:36 +0100 Subject: [PATCH] Remove unused roles from privileges modal --- app/views/user/_modal_privileges.html.haml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/views/user/_modal_privileges.html.haml b/app/views/user/_modal_privileges.html.haml index f54ec705..cdbae22d 100644 --- a/app/views/user/_modal_privileges.html.haml +++ b/app/views/user/_modal_privileges.html.haml @@ -8,11 +8,7 @@ %h4#modal-privileges-label.modal-title = raw t('views.actions.privilege', user: @user.screen_name) %ul.list-group.groups--list - = render 'user/modal_privileges_item', privilege: 'blogger', description: t('views.modal.privilege.blogger'), user: @user - = render 'user/modal_privileges_item', privilege: 'contributor', description: t('views.modal.privilege.contributor'), user: @user - = render 'user/modal_privileges_item', privilege: 'translator', description: t('views.modal.privilege.translator'), user: @user - if current_user.has_role?(:administrator) - = render 'user/modal_privileges_item', privilege: 'supporter', description: t('views.modal.privilege.supporter'), user: @user = render 'user/modal_privileges_item', privilege: 'moderator', description: t('views.modal.privilege.moderator'),user: @user = render 'user/modal_privileges_item', privilege: 'admin', description: t('views.modal.privilege.admin'), user: @user .modal-footer