Add an admin can take a user offline.
Also this code has a lot of the same changes as my last PR
From the admin's dashboard, there is a users table with columns:
first_name
last_name
email
roles
status
action
An admin can click "activate user" or "deactivate user" to change the status of a user. Status is an attribute added to the user's table that is an enum, defaulted to active.
If a user is inactive,
they get a 404 when they login
their listings do not show up on the listings index
Add an admin can take a user offline. Also this code has a lot of the same changes as my last PR
From the admin's dashboard, there is a users table with columns:
An admin can click "activate user" or "deactivate user" to change the status of a user. Status is an attribute added to the user's table that is an enum, defaulted to active.
If a user is inactive,
RSpec: 83 examples, 0 failures, 1 pending