Symfony2 security functions in Twig? How to check the user’s role? February 12, 2023 by Tarik {% if is_granted('ROLE_ADMIN') %} ... {% endif %}