summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-03 10:52:01 +0100
committerAzul <azul@leap.se>2012-12-03 10:52:01 +0100
commit2a928455f9dcefa465b80b79768ba1d1a423e6e9 (patch)
tree9a169d415a7f7eb80c28b6e313613b4a4a10f44b /users/app/controllers
parent1de597b338f0622a7732676907365de673c34dfb (diff)
enable users to cancel their account
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 3407191..cffc8c6 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -36,7 +36,7 @@ class UsersController < ApplicationController
def destroy
@user.destroy
- redirect_to users_path
+ redirect_to admin? ? users_path : login_path
end
protected