Commit d2a25d07 authored by Tugce Nur Tas's avatar Tugce Nur Tas Committed by Tuğçe Nur Taş
Browse files

superadmin wont see a button for delete its own account

parent 732eb328
......@@ -7,3 +7,6 @@
.col-md-4
strong= t_attr(:role)
.col-md-8 = t("role.#{@user.role}")
- if policy(@user).destroy?
= link_to t_action(:destroy), @user, data: { confirm: t('are_you_sure')}, method: :delete, class: 'btn btn-danger'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment