Skip to content

Commit a15f75f

Browse files
committed
admin/accounts: for maintainers, show the button to remove the role
1 parent dcac61b commit a15f75f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/views/admin/accounts/index.html.haml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
%td
7373
- if account.editor?
7474
= button_to "Simple visiteur", admin_account_editor_path(account.id), method: :delete, class: "change_role"
75+
- if account.maintainer?
76+
= button_to "Simple visiteur", admin_account_maintainer_path(account.id), method: :delete, class: "change_role"
7577
- elsif account.moderator?
7678
= button_to "Simple visiteur", admin_account_moderator_path(account.id), method: :delete, class: "change_role"
7779
- elsif account.admin?

0 commit comments

Comments
 (0)