Skip to content

[Bug] [Edit User Info] Problems caused by modifying the administrator user information. #7857

@songjianet

Description

@songjianet

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

  • User state

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.

image

The same problem exists in the user management section.

image

  • Authorized operation of admin user

The administrator should have all the permissions by default, and there is no need to perform authorization related operations.

image

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrelease cherry-pickMark this issue/PR had cherry-pick for release versionsecurity

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions