Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Fix preferences when user has role via group #8957

Conversation

duncanmcclean
Copy link
Member

This pull request fixes an issue where the CP Nav Preferences would not be applied to a user's Control Panel if they were assigned to a role via a user group.

Closes #7565.

@duncanmcclean duncanmcclean marked this pull request as ready for review November 9, 2023 11:06
@jasonvarga
Copy link
Member

We didn't actually have coverage for the role-based permissions being looped over. The tests only tested a single role.

Since this PR was adding some complexity to that merging logic, I thought it would be a good idea to add a test. It's a complicated looking test, but I think it covers it.

@jasonvarga jasonvarga changed the title [4.x] Fix CP Nav Preferences when user has role via group [4.x] Fix preferences when user has role via group Mar 7, 2024
@jasonvarga jasonvarga merged commit cfde579 into 4.x Mar 7, 2024
35 checks passed
@jasonvarga jasonvarga deleted the fix/cp-nav-preferences-not-applied-when-user-has-role-via-group branch March 7, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CP navigation preference is not applied to group roles
2 participants