Skip to content
Snippets Groups Projects
Commit 4ec9d8b4 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Display deleted users' role as “Suspended” (#6339)

Follow-up to 6eb60260 which missed a spot where
the same error occurs.
parent d966878e
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,10 @@
%tr
%th= t('admin.accounts.role')
%td
= t("admin.accounts.roles.#{@account.user&.role}")
- if @account.user.nil?
= t("admin.accounts.moderation.suspended")
- else
= t("admin.accounts.roles.#{@account.user&.role}")
= table_link_to 'angle-double-up', t('admin.accounts.promote'), promote_admin_account_role_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:promote, @account.user)
= table_link_to 'angle-double-down', t('admin.accounts.demote'), demote_admin_account_role_path(@account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:demote, @account.user)
%tr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment