When someone leaves the team, I want to be able to deactivate their admin account, so they don't have access anymore.
Acceptance criteria
Log into admin v2 - admin@odin.com, password123
Invite a new team member
Accept the invite and log into the new team members account in an incognito window
Back on first admin account, click the ellipsis menu on the new team member
Click the "Deactivate" option
The admin should be moved to a "Deactivated" section at the bottom of the team page
As the deactivated admin...
Refresh the incognito window - you should be signed out
Try to sign in again - you should be redirected back to the sign in page with a notice informing the admin they've been deactivated
Notes
We want to deactivate instead of deleting to ensure that our audit trails are kept intact. For example, when an admin handles a flag, we will set that admin as the handler. If we allow admins to be fully deleted, that association will be lost.
When someone leaves the team, I want to be able to deactivate their admin account, so they don't have access anymore.
Acceptance criteria
As the deactivated admin...
Notes
We want to deactivate instead of deleting to ensure that our audit trails are kept intact. For example, when an admin handles a flag, we will set that admin as the handler. If we allow admins to be fully deleted, that association will be lost.