Browse files

oooops

  • Loading branch information...
1 parent cea4e76 commit 307759af850e70bab36049dd4613dc5b4f880331 @dirksiemers committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/users_controller.rb
View
2 app/controllers/users_controller.rb
@@ -41,7 +41,7 @@ def update
def destroy
user = User.find(params[:id])
- if current_user?(user)
+ if !current_user?(user)
user.destroy
flash[:success] = "User destroyed."
else

0 comments on commit 307759a

Please sign in to comment.