Search before asking
What happened
When I logged in as an administrator, I modified the user information, changed the administrator's status to disabled, and modified the administrator's user name, all interfaces were unavailable.

The same problem exists in the user management section.

- Authorized operation of admin user
The administrator should have all the permissions by default, and there is no need to perform authorization related operations.

What you expected to happen
Administrators cannot modify their own status, but they can modify the status of ordinary users. Ordinary users cannot modify their own status and the status of administrators and other ordinary users. The administrator does not need to assign any permissions to himself.
How to reproduce
Log in with any identity to modify your personal status.
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct
Search before asking
What happened
When I logged in as an administrator, I modified the user information, changed the administrator's status to disabled, and modified the administrator's user name, all interfaces were unavailable.
The same problem exists in the user management section.
The administrator should have all the permissions by default, and there is no need to perform authorization related operations.
What you expected to happen
Administrators cannot modify their own status, but they can modify the status of ordinary users. Ordinary users cannot modify their own status and the status of administrators and other ordinary users. The administrator does not need to assign any permissions to himself.
How to reproduce
Log in with any identity to modify your personal status.
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct