Admin Privileges - Admins can deactivate and reactivate user
sorachung opened this issue · 0 comments
GIVEN user is authenticated with the user type admin
WHEN is viewing a user's profile
THEN admin should see a deactivate button
GIVEN admin wants to deactivate a user
WHEN admin clicks the deactivate button
THEN a confirmation dialog should pop up asking admin to confirm
WHEN admin clicks confirm
THEN the user should be deactivated in the db and the dialog should go away and the admin redirected to deactivated users list page.
WHEN admin clicks cancel
THEN the the dialog should go away and the user untouched in the db
The user should be unable to log in and their content as though it does not exist
GIVEN admin is on deactivated users page and wants to reactivate a user
WHEN admin clicks reactivate next to a user's row
THEN the user should be reactivated in the db and the page rerendered