NSS-Day-Cohort-59 / meticulous-magpies

TabloidMVC group project
1 stars 0 forks source link

Prevent loss of all admins #59

Closed DanielOhrin closed 1 year ago

DanielOhrin commented 1 year ago

Added a method to UserProfile repository to check how many admins there are at any given time.

When trying to edit a user's role or deactivate an account, prevented them from taking away the last admin.