symfony - SonataAdminBundle Security roles -


i'm trying secure admin in sonataadminbundle

i add sonatauserbundle fosuserbundle login. can add users, groups , roles

in security.yml

role_hierarchy:     role_admin: role_admin     role_it: role_it     role_super_admin: [role_admin, role_it]   access_control:     - { path: ^/sonata/login$, role: is_authenticated_anonymously }     - { path: ^/sonata/logout$, role: is_authenticated_anonymously }     - { path: ^/sonata/login-check$, role: is_authenticated_anonymously }     - { path: ^/sonata, role: [role_admin] }     - { path: ^/sonata/api/monolog, role: [role_it] } 

i have connected access sonata

but every user can access route /sonata/api/monolog if don't have role_it

how can securize admin , how can display link if user can acces it

use acl security handler.

resources: sonataadminbundle security


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -