{% if currentPath != path('user_view', {'id': user.id}) %} {% endif %} {% if is_granted('fire', user.mainGroup) and nofire is not defined %} {% endif %} {% if is_granted('employee', user.mainGroup) and noemployee is not defined %} {% endif %} {% if is_granted('sanction', user.mainGroup) and nosanction is not defined %} {% endif %}