NSS-Day-Cohort-59 / meticulous-magpies

TabloidMVC group project
1 stars 0 forks source link

Prevent Loss of All Admins #20

Closed joshdbarton closed 1 year ago

joshdbarton commented 1 year ago

As the Tabloid Product Owner, I would like to ensure at least one User Profile has a User Type of admin at all times, so that someone will always be available to administer the system.

Given only one User Profile has administrative rights
When the user attempts to deactivate that last admain
Then they should see an error message instructing them to make someone else an admin before the User Profile can be deactivated

Given only one User Profile has administrative rights
When the user attempts to change the User Type of the last admin
Then they should see an error message instructing them to make someone else an admin before the User Profile can be changed