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

Roles matrix group by admin and admin group #1587

Merged
merged 6 commits into from
Feb 2, 2023

Conversation

piddubnij
Copy link
Contributor

Subject

Admin roles attribute "admin_label" set admin translation domain
Roles matrix group by admin and admin group
Admin roles sort by admin config and group config

I am targeting this branch, because this is BC.

Closes #1583.

Changelog

### Changed
- RolesBuilder: add attributes "admin_code", "group_label", "group_code".
### Fixed
- Fix RolesBuilder attribute "admin_label" set admin translation domain
- Fix roles matrix attribute "admin_label" can repeat not even in different groups but also in the same group

@VincentLanglet
Copy link
Member

Hi @piddubnij, sorry for the delay ; do you have a screenshot of the result ?

Copy link
Member

@VincentLanglet VincentLanglet left a comment

Choose a reason for hiding this comment

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

I thought the proposal in #1583 (comment) was "just" to change

List
List
Media
...

to

Article - List
Menu - List
sonata_media - Media
...

Wasn't the implementation proposed possible ?
Because the one proposed in the issue seemed BC when this one is introducing BC-break

src/Twig/RolesMatrixExtension.php Show resolved Hide resolved
src/Twig/RolesMatrixExtension.php Outdated Show resolved Hide resolved
src/Security/RolesBuilder/AdminRolesBuilder.php Outdated Show resolved Hide resolved
src/Security/RolesBuilder/AdminRolesBuilder.php Outdated Show resolved Hide resolved
@piddubnij
Copy link
Contributor Author

Hi @piddubnij, sorry for the delay ; do you have a screenshot of the result ?

result-1

@VincentLanglet VincentLanglet requested a review from a team January 7, 2023 23:20
@piddubnij
Copy link
Contributor Author

@VincentLanglet Thank you 👍🏻

@VincentLanglet VincentLanglet merged commit e22f16d into sonata-project:5.x Feb 2, 2023
@piddubnij piddubnij deleted the 5.x-roles-matrix-group branch February 21, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect display acl privileges grid, when exists two admin entity with the same name (in other groups).
2 participants