{% set routename = app.request.get('_route') %} {% set random = services.generateReference(5) %} {% if not is_granted('ROLE_ATTENDEE') %} {% endif %} {% if is_granted('ROLE_ADMINISTRATOR') %} {# Administrator role sidebar links #} {% elseif is_granted('ROLE_ORGANIZER') %} {# Organizer role sidebar links #} {% elseif is_granted('ROLE_ATTENDEE') %} {# Attendee role sidebar links #} {% if app.user.facebookId is null and app.user.googleId is null %} {% endif %} {% elseif is_granted('ROLE_POINTOFSALE') %} {# Point of sale role sidebar links #} {% endif %}