remove user deletion until further notice

This commit is contained in:
Stella 2015-01-18 22:01:05 +02:00
parent bca62e6204
commit 80fbc144ac
4 changed files with 1 additions and 42 deletions

View file

@ -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'