Issue 48: PATCH Cannot delete admin users.
Status:  Fixed
Owner: ----
Closed:  Apr 2008
Reported by edmundo...@gmail.com, Mar 12, 2008
What steps will reproduce the problem?
1. Create an admin user an try to delete it.

What is the expected output? What do you see instead?
Nothing happens, you are just redirected to the list action. It should
delete the user, and it should not appear in the list. 

What version of the product are you using? On what operating system?
trunk. Ubuntu 7.04

Please provide any additional information below.
In the shell:
Processing UsersController#destroy (for 127.0.0.1 at 2008-03-12 12:57:45) [GET]
  Session ID: 364deb6d0c97f428c4644ac669a607b0
  Parameters: {"action"=>"destroy", "id"=>"541702177",
"controller"=>"admin/users"}
...
Redirected to http://localhost:3000/admin/users/list
Filter chain halted as
[#<ActionController::Filters::ClassMethods::ProcFilter:0xb68e58bc
@filter=#<Proc:0xb70163c0@/home/edmundo/workspace_aptana/substruct_trunk/vendor/rails/actionpack/lib/action_controller/verification.rb:75>>]
rendered_or_redirected.
Completed in 0.06155 (16 reqs/sec) | DB: 0.01133 (18%) | 302 Found
[http://localhost/admin/users/destroy/541702177
...

As shown above, its using GET in the destroy action and the filter chain
halts. The option in the link_to that defines that it should use POST is wrong.

Fixed a deprecated render partial command too.
destroy_admin_user.patch
1.1 KB   View   Download
Apr 8, 2008
Project Member #1 subim...@gmail.com
Fixed - revision #54

Also made sure users logged in can't delete themselves.
Status: Fixed