Symfony2 security functions in Twig? How to check the user's role? Symfony2 security functions in Twig? How to check the user's role? symfony symfony

Symfony2 security functions in Twig? How to check the user's role?


{% if is_granted('ROLE_ADMIN') %} ... {% endif %}