Skip to content

Commit

Permalink
User should not be able to delete account on which he is logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
Ania committed Dec 16, 2010
1 parent b20771c commit e8411c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/_users.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<td class="icons">
<%= link_to_calendar user %>
<%= link_to image_tag("icons/pencil.png", :title => "Edit", :alt => "E"), url(:edit_user, user) %>
<%= link_to image_tag("icons/cross.png", :title => "Remove", :alt => "R"), url(:user, user), :class => "delete_row" %>
<%= link_to image_tag("icons/cross.png", :title => "Remove", :alt => "R"), url(:user, user), :class => "delete_row" unless user == current_user %>
</td>
</tr>
<% end %>
Expand Down

0 comments on commit e8411c8

Please sign in to comment.