songtianlun
f2c7d02eed
- Implement user destroy action in UsersController - Add admin check for user deletion - Update user view to include delete link for admins - Add migration to add admin attribute to users - Update tests to cover new admin functionality This commit introduces the ability for admin users to delete other users from the system. It includes necessary checks to ensure that only admins can perform this action, along with updates to the user interface and tests to validate the new behavior. |
||
---|---|---|
.. | ||
_form.html.erb | ||
_user.html.erb | ||
edit.html.erb | ||
index.html.erb | ||
new.html.erb | ||
show.html.erb |