Skip to content

Resolved #4708 where superadmins were not able to edit their own secondary roles#4747

Merged
TomJaeger merged 2 commits into7.devfrom
bug/7.x/sa-edit-own-secondary-role
Aug 6, 2025
Merged

Resolved #4708 where superadmins were not able to edit their own secondary roles#4747
TomJaeger merged 2 commits into7.devfrom
bug/7.x/sa-edit-own-secondary-role

Conversation

@intoeetive
Copy link
Contributor

Resolved #4708 where superadmins were not able to edit their own secondary roles

@intoeetive intoeetive added the Bug: Accepted Bug has been confirmed, is reproducible, and ready to work on. label Mar 23, 2025
@intoeetive intoeetive added this to the 7.x milestone Mar 23, 2025
@TomJaeger TomJaeger requested a review from robinsowell March 25, 2025 18:50
Copy link
Contributor

@robinsowell robinsowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm- something is going really wrong. The roles are accessible and the superadmin main role is disabled, so all that is good.

But when I add a new 'regular' role and save, it logs me out and I can't get back in and if I look in the db in exp_members, my role_id is now 0. Switch that back to 1 and I'm ok.

The secondary roles 'stick' and are checked when I can log back in, but it's just setting the primary role id in exp_members to 0

@intoeetive intoeetive requested a review from robinsowell April 30, 2025 13:13
@intoeetive intoeetive modified the milestones: 7.x, 7.5.12 May 14, 2025
@TomJaeger TomJaeger modified the milestones: 7.5.12, 7.5.13 May 14, 2025
@TomJaeger TomJaeger modified the milestones: 7.5.13, 7.5.14 Jun 16, 2025
@TomJaeger
Copy link
Contributor

@robinsowell can you test this one and confirm fix?

@Yulyaswan
Copy link
Collaborator

It looks correct to me, but I think it would be best if Robin could confirm as well.

Copy link
Contributor

@robinsowell robinsowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checks out for me- thanks!

@TomJaeger TomJaeger merged commit b2e212f into 7.dev Aug 6, 2025
22 checks passed
@TomJaeger TomJaeger deleted the bug/7.x/sa-edit-own-secondary-role branch August 6, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants