In Sonta Admin Dashboard, i want to display Blocks based on Roles.
I.e : a block for admin will not be displayed for Author and etc.
in config.yml just define the roles:
dashboard:
blocks:
- { position: left, type: sonata.block.service.statistics.toparticles,class: col-md-6, roles: [ROLE_ADMIN,ROLE_AUTHOR] }