Answers for "check twig if user has role"

0

check twig if user has role

{% if is_granted('ROLE_ADMIN') %}
    <a href="...">Delete</a>
{% endif %}
Posted by: Guest on February-05-2021

Code answers related to "check twig if user has role"

Browse Popular Code Answers by Language