how check is admin in twig code example Example: check if user has role twig {% if is_granted('ROLE_ADMIN') %} ... {% endif %}