remove user deletion until further notice
This commit is contained in:
parent
bca62e6204
commit
80fbc144ac
4 changed files with 1 additions and 42 deletions
|
|
@ -18,7 +18,6 @@
|
|||
%th Roles
|
||||
%th View
|
||||
%th Edit
|
||||
%th Delete
|
||||
%tbody
|
||||
- @users.each do |user|
|
||||
%tr
|
||||
|
|
@ -48,11 +47,3 @@
|
|||
- if can? :update, user
|
||||
%td
|
||||
= link_to 'Edit', edit_admin_user_path(user), class: 'btn btn-primary'
|
||||
- if can? :destroy, user
|
||||
%td
|
||||
- if current_user.id == user.id or user.role_ids.include? 3
|
||||
= link_to 'Delete',admin_user_path(user), :method => :delete , :data => {:confirm => 'Are you sure ?'},
|
||||
disabled: true, class: 'btn btn-primary disabled btn-danger', role: 'button'
|
||||
- else
|
||||
= link_to 'Delete',admin_user_path(user), method: :delete,
|
||||
data: { confirm: 'Are you sure ?' }, class: 'btn btn-primary btn-danger'
|
||||
Loading…
Add table
Add a link
Reference in a new issue