summaryrefslogtreecommitdiff
path: root/users/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-06 12:30:58 +0100
committerAzul <azul@leap.se>2012-12-06 12:30:58 +0100
commit2885145729cbba9a933a8a2ff33c4fd99f08e0fb (patch)
treed6c3cc84ef294c54c198b78b4e3e3e787735eb50 /users/app/controllers/users_controller.rb
parentea3718c34cccd294865c0dd533db0b4aa18015cc (diff)
parent1b411de39f38eb0925cf255e941545933f227759 (diff)
Merge branch 'feature/user-cancel-account' into develop
Diffstat (limited to 'users/app/controllers/users_controller.rb')
-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