Closed DanielOhrin closed 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.
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.