sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Left dashboard menu doesn't take into account roles on admin #2829

Closed fredericaebi closed 6 years ago

fredericaebi commented 9 years ago

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. capture d ecran 2015-03-17 a 07 46 37

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.

core23 commented 8 years ago

This issue is very old. Can you please check this against the latest master version?

Feel free to close if you don't use this bundle anymore or the issue is fixed.

jordisala1991 commented 6 years ago

This is fixed since 3.0