Closed core23 closed 2 days ago
I am targeting this branch, because this feature is BC.
Finally provide #4925 feature
### Added - Enable security information mapping for `RoleSecurityHandler`
If you want to combine multiple permissions, you can now use the sonata.admin.security.handler.role for this.
sonata.admin.security.handler.role
sonata_admin: security: handler: sonata.admin.security.handler.role information: VIEWER: [VIEW, LIST, EXPORT] EDITOR: [EDIT, LIST, CREATE] ADMIN: [OPERATOR, MASTER]
If you have a user with a ROLE_ACME_ADMIN_VIEWER permission, the security handler will work if your admin asks for VIEW, LIST or EXPORTER grants.
ROLE_ACME_ADMIN_VIEWER
The changes are BC, because if will also work if you have no special information mapping.
phpstan is also failing on the dev-kit PRs :(
https://github.com/sonata-project/SonataAdminBundle/actions/runs/9930955039/job/27430272674?pr=8195
Subject
I am targeting this branch, because this feature is BC.
Finally provide #4925 feature
Changelog
If you want to combine multiple permissions, you can now use the
sonata.admin.security.handler.role
for this.If you have a user with a
ROLE_ACME_ADMIN_VIEWER
permission, the security handler will work if your admin asks for VIEW, LIST or EXPORTER grants.The changes are BC, because if will also work if you have no special information mapping.