Describe the bug
superadmin can remove superadmin group from his group when edit his account and this can lock the system if there is no user with supderadmin permission.
To Reproduce
Steps to reproduce the behavior:
login as superadmin account
list users and locate your self and try to edit your account
remove the superadmin from your groups
save
this will remove the superadmin permissoin and lock the system until another superadmin give you the permission if there is another superadmin or the system is locked until permission granted again to your account and this is not logic.
Expected behavior
disallow the superadmin to remove his self from superadmin or deny the superadmin from changing his account usergroup while edit hit account.
Describe the bug superadmin can remove superadmin group from his group when edit his account and this can lock the system if there is no user with supderadmin permission.
To Reproduce Steps to reproduce the behavior:
Expected behavior disallow the superadmin to remove his self from superadmin or deny the superadmin from changing his account usergroup while edit hit account.