check if user has role twig

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

Also in PHP: