php - Sonata admin - custom menu item roles -
how can setup custom roles custom routes without sonata admin, using sonata admin menu builder.
sonata.admin.group.content: label: test label_catalogue: test icon: '<i class="fa fa-file-text"></i>' items: - route: custom_route_1 label: 'custom_route_1' - route: custom_route_2 label: 'custom_route_2' - route: custom_route_3 label: 'custom_route_3'
i want setup separate roles each element of menu.
you must add option roles in yml code :
sonata.admin.group.content: label: test label_catalogue: test icon: '<i class="fa fa-file-text"></i>' items: - route: custom_route_1 label: 'custom_route_1' - route: custom_route_2 label: 'custom_route_2' - route: custom_route_3 label: 'custom_route_3' roles : [role_x, roles_y,.....]
Comments
Post a Comment