Show user delete links to admins
This commit is contained in:
parent
5c3f549492
commit
81a5a55f57
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@
|
|||
|
||||
<% end %>
|
||||
|
||||
<% if can?(:set_status, User) || can?(:delete, User) %>
|
||||
<% if can?(:set_status, User) || can?(:destroy, User) %>
|
||||
|
||||
<ul class='secondary-actions clearfix'>
|
||||
<% if can? :set_status, User %>
|
||||
|
@ -138,7 +138,7 @@
|
|||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if can? :delete, User %>
|
||||
<% if can? :destroy, User %>
|
||||
<li>
|
||||
<%= link_to t(".delete_user"), user_path(:display_name => @user.display_name), :method => :delete, :data => { :confirm => t(".confirm") } %>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue