fahminlb33 / Venjix

Multipurpose IOT data collection, visualization, and forecasting tool using ASP.NET Core MVC.
MIT License
3 stars 1 forks source link

Disallow superadmin to change role. #8

Closed rasyidf closed 3 years ago

rasyidf commented 3 years ago

The admin account currently able to change into normal users, it's problematic when the user with only one administrator, accidentally apply those rules. so there's no anyone left to be an admin.

image

Suggested Workaround for this:

fahminlb33 commented 3 years ago

Thanks for the insight! I'll fix this in near future, maybe next week if I have the time. Do you want to create a PR for this issue? I'll assign you to this issue.