sonata-project / SonataUserBundle

Symfony SonataUserBundle
https://docs.sonata-project.org/projects/SonataUserBundle
MIT License
339 stars 488 forks source link

How I can hide the User menu in dashboard and top menu bar? #138

Closed mrcmorales closed 11 years ago

mrcmorales commented 12 years ago

Hello,

Today I installed sonata User Bundle and works perfectly but I would like hide the User menu from Dashboard and TopMenu .

How I can do it?

Thanks

Regards

ubick commented 12 years ago

Hi kuert,

You can hide the User menu by configuring the sonata_admin groups yaml options and being specific about what items you would like to display.

Example (assuming we only want to display the entity Cars and the SonataMediaBundle):

sonata_admin: groups: Cars: ~ sonata_media: label: "Media Library" items: ~

Hope this helps.