diff options
author | elijah <elijah@riseup.net> | 2014-12-15 16:07:30 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-12-15 16:07:30 -0800 |
commit | 6e15813d549fd9e56a48fd87d425fd31f37521e8 (patch) | |
tree | 730134da23e7904059c26973f856762f99f0d56d /app/controllers | |
parent | b59360a003af595f1552f2ce753d4d80e5cf0028 (diff) |
bugfix: allow deletion of user's identities via api when user is deleted. closes #6550
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/v1/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/v1/users_controller.rb b/app/controllers/v1/users_controller.rb index d57db6f..2e840d9 100644 --- a/app/controllers/v1/users_controller.rb +++ b/app/controllers/v1/users_controller.rb @@ -30,7 +30,7 @@ module V1 end def destroy - @user.account.destroy + @user.account.destroy(params[:identities] == "destroy") if @user == current_user logout end |