Skip to content

Commit

Permalink
User should not be able to desactivate 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 48de385 commit d1f0ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/_user_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<p>
<%= text_field :email, :label => "Email" %>
</p>
<% unless @user.new? %>
<% if !@user.new? && @user != current_user%>
<p>
<label for="user_active">Active?</label>
<%= check_box :active %>
Expand Down

0 comments on commit d1f0ed7

Please sign in to comment.