Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin can deactivate their own account #781

Closed
Zrrrpy opened this issue Sep 17, 2020 · 1 comment · Fixed by #851
Closed

Admin can deactivate their own account #781

Zrrrpy opened this issue Sep 17, 2020 · 1 comment · Fixed by #851
Assignees
Labels
👑 Admin Work relating to the admin role Priority: Medium working-in-qa Tested & working in QA

Comments

@Zrrrpy
Copy link
Collaborator

Zrrrpy commented Sep 17, 2020

Part of epic #4

What type of user is this for? [admin/supervisor/volunteer/all or All CASA Admin]
admin

Where does/should this occur?
On the <"https://casa-r4g-staging.herokuapp.com/users/edit">edit profile page for Admins.

Log in to staging and use these credentials to access the admin dashboard:
username – casa_admin1@example.com
password – 123456

Description
Admins should be able to deactivate their own accounts. There should be a distinguished button on an Admin's edit profile page that does this.

Note: If there is only one active admin account, the user should not be able to deactivate themself. When they try, they should see an error message that reads: Contact your administrator at Ruby For Good to deactivate this account.

@Zrrrpy Zrrrpy created this issue from a note in CASA Volunteer Portal (To do) Sep 17, 2020
@Zrrrpy Zrrrpy added 👑 Admin Work relating to the admin role Help Wanted This is a special label that enables github to showcase issues that want help Priority: Medium ⚡ Power ⚡ labels Sep 17, 2020
@KatherineMuedas KatherineMuedas self-assigned this Sep 23, 2020
@KatherineMuedas KatherineMuedas moved this from To do to In progress in CASA Volunteer Portal Sep 23, 2020
@Zrrrpy Zrrrpy removed the Help Wanted This is a special label that enables github to showcase issues that want help label Sep 23, 2020
@KatherineMuedas
Copy link
Collaborator

Hello @Zrrrpy , I've been looking at the User Model and we have an active boolean attribute. Can we use that active attribute to deactivate an account? If so, when deactivating the account the active would change from true to false.

CASA Volunteer Portal automation moved this from In progress to Merged to QA Sep 25, 2020
@Zrrrpy Zrrrpy added the working-in-qa Tested & working in QA label Oct 11, 2020
@Zrrrpy Zrrrpy moved this from Merged to QA to Done (in staging or deferred) in CASA Volunteer Portal Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👑 Admin Work relating to the admin role Priority: Medium working-in-qa Tested & working in QA
Projects
CASA Volunteer Portal
Done (in prod!)
Development

Successfully merging a pull request may close this issue.

2 participants