{%if consultas == true%} {% for consulta in consultas %} {% if is_granted(consulta.rol)%} {% endif%} {% endfor %} {% endif %}