Reputation: 37
I want to add a role to manage the display of submenu in dashboard on sonataAdmiBundle.
Any idea?
Upvotes: 0
Views: 188
Reputation: 505
you just have to define roles :
# config/packages/security.yaml
security:
providers:
in_memory:
memory:
users:
ryan:
password: ryanpass
roles: 'ROLE_USER'
admin:
password: kitten
roles: 'ROLE_ADMIN'
# ...
http://symfony.com/doc/current/security.html
Upvotes: 1