I wanna use the Role Handler security on my Sonata admin dashboard. I work with Symfony 2.3.
In the doc, I have:
Each permission is relative to an admin: if you try to get a list in FooAdmin (declared as sonata.admin.demo.foo service), Sonata will check if the user has the
ROLE_SONATA_ADMIN_DEMO_FOO_EDIT
role.
As I understand, if I have services such as:
sonata.admin.article
sonata.admin.user
sonata.admin.tag
Then I need to create an edit role, being a list of those 3 elements:
ROLE_SONATA_ADMIN_ARTICLE_EDIT
and ROLE_SONATA_ADMIN_USER_EDIT
and ROLE_SONATA_ADMIN_TAG_EDIT
But I would rather like to create access more generals, for example, in my case, simply do: ROLE_SONATA_ADMIN_EDIT
instead and of a list of three.
Is there a simple way to do this with this bundle?