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

filtering a user's permissions, capabilities fixes #19680

Merged
merged 7 commits into from Aug 31, 2022
Merged

filtering a user's permissions, capabilities fixes #19680

merged 7 commits into from Aug 31, 2022

Conversation

peterhashair
Copy link
Contributor

@peterhashair peterhashair commented Aug 26, 2022

Description:

Fixes: #19679

The problem is caused by matomo_access table, Capabilities and access are in one column when the filter is by where it cleans the other access

Review

update some get role and capabilities
@peterhashair peterhashair changed the title filtering a user's permissions, capabilities fixs filtering a user's permissions, capabilities fixes Aug 26, 2022
Peter added 3 commits August 26, 2022 14:25
update query and add tests
update query
update access
@sgiehl sgiehl added this to the 4.12.0 milestone Aug 26, 2022
@sgiehl sgiehl added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Aug 26, 2022
@peterhashair peterhashair added the Needs Review PRs that need a code review label Aug 28, 2022
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

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

@peterhashair It seems our UI tests are currently not covering that case. Might be good to also add a simple test, that filters by permission, after this one: https://github.com/matomo-org/matomo/blob/4.x-dev/plugins/UsersManager/tests/UI/UsersManager_spec.js#L617-L622

@sgiehl sgiehl removed the Needs Review PRs that need a code review label Aug 30, 2022
@peterhashair
Copy link
Contributor Author

@sgiehl updated UI tests

@sgiehl sgiehl merged commit 598c7e5 into 4.x-dev Aug 31, 2022
@sgiehl sgiehl deleted the m19679 branch August 31, 2022 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When filtering a user's permissions, then it doesn't show capabilities correctly
2 participants