I am having these 3 role's
1. ROLE_ADMIN
2. ROLE_SAMPLE
3. ROLE_USER
This My twig file
{% if is_granted('ROLE_ADMIN') %}
<a href="...">Delete</a>
{% endif %}
i need to show the delete link for ROLE_ADMIN and also ROLE_SAMPLE
how do i get it????
above code is to show the delete link for only ROLE_ADMIN
how to add one more role(ROLE_SAMPLE) in that???
see this link: Symfony2 and Twig sidebar