I have been able to restrict access to the listing of certain admins by defining roles for different users. The admins appear correctly (according to the defined roles) in the center and also using the icon on the top right of the screen, but not in the sonata admin menu on the left.
As you can see in the screenshot below, the user is not allowed to create or list "description.label". But the item still appears in the menu on the left.
I think this is a bug because after having a look at the code of SonataAdminBundle's standard_layout.html.twig and also sonata_menu.html.twig, the code doesn't seem to take into account permission on admins.
I have been able to restrict access to the listing of certain admins by defining roles for different users. The admins appear correctly (according to the defined roles) in the center and also using the icon on the top right of the screen, but not in the sonata admin menu on the left.
As you can see in the screenshot below, the user is not allowed to create or list "description.label". But the item still appears in the menu on the left.
I think this is a bug because after having a look at the code of SonataAdminBundle's standard_layout.html.twig and also sonata_menu.html.twig, the code doesn't seem to take into account permission on admins.