Skip to content

Superadmin can't remove a secondary role from themselves, but ought to be able #4708

@nep

Description

@nep

Description of the problem
As a Superadmin, I should be able to change what secondary roles are assigned to my own account.
Instead, you get an error message when you try.
I understand that you should not be able to remove your own superadmin status. But other roles should be modifiable.

How To Reproduce
Steps to reproduce the behavior:
Go to the Member page. admin.php?/cp/members
For your own superadmin account, go to edit your "Roles"
You'll get an error

Error Messages


500: Internal Server Error
Super Admins cannot change their role assignment. Please have another Super Admin reassign you.

Screenshots / Videos / Template Code

Environment Details:

  • Version: 7.5.7
  • PHP Version doesn't matter
  • MySQL Version doesn't matter
  • OS: doesn't matter
  • Web Server: doesn't matter

Possible Solution
it's just a logic check.

Metadata

Metadata

Assignees

Labels

Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions