NSS-Day-Cohort-49 / tabloid-mvc-streamers

tabloid-mvc-streamers created by GitHub Classroom
0 stars 0 forks source link

Prevent Loss of All Admins #20

Open joshdbarton opened 3 years ago

joshdbarton commented 3 years 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