    {% if app.user %}
        {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') %}
            <li><a href="{{ path('cadoles_core_config') }}" title="Configuration"><i class="fa fa-cog fa-fw"></i></a>
        {% endif %}

        {% set permannu = app.session.get('permannu') %}
        
        {% if fgheader %}
        <li id="menu-header"><a onclick="switchHeader()" title="Cacher / Afficher Bannière " style="cursor:pointer"><i class="fa fa-chevron-up fa-fw"></i></a>
        {% else %}
        <li id="menu-header"><a onclick="switchHeader()" title="Cacher / Afficher Bannière " style="cursor:pointer"><i class="fa fa-chevron-down fa-fw"></i></a>
        {% endif %}

        {% if is_granted('ROLE_ADMIN') or (is_granted('ROLE_MODO') and (permannu=="ROLE_MODO" or permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_ANIM') and (permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_USER') and permannu=="ROLE_USER") %}
        <li id="menu-annuaire"><a href="{{ path('cadoles_core_user_users') }}" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a>
        {%endif%}

        <li id="menu-group"><a href="{{ path('cadoles_core_user_group') }}" title="Groupes"><i class="fa fa-users fa-fw"></i></a>
        <li id="menu-notice"><a href="{{ path('cadoles_portal_user_notice_view') }}" title="Charte"><i class="fa fa-info fa-fw"></i></a>
        <li id="menu-profil"><a href="{{ path('cadoles_core_user') }}" title="Profil"><img class='avatar' src="/{{ alias }}/uploads/avatar/{{ app.user.avatar }}"></a></li>


        <li>
        {% if mode_auth == "SAML" %}
          <a href="{{ url('cadoles_core_kill') }}" title="Déconnexion"><i class="fa fa-sign-out-alt fa-fw"></i></a>
        {% elseif mode_auth == "CAS"  %}
          <a href="{{ path('cas_sp.logout') }}" title="Déconnexion"><i class="fa fa-sign-out-alt fa-fw"></i></a>
        {% elseif mode_auth == "SQL"  %}
          <a href="{{ path('cadoles_core_kill') }}" title="Déconnexion"><i class="fa fa-sign-out-alt fa-fw"></i></a>
        {% elseif mode_auth == "LDAP"  %}
          <a href="{{ path('cadoles_core_kill') }}" title="Déconnexion"><i class="fa fa-sign-out-alt fa-fw"></i></a>
        {% endif %}        
        </li>


    {% else %}
        <li><a href="{{ path('cadoles_portal_user_notice_view') }}" title="Charte"><i class="fa fa-info fa-fw"></i></a>
        
        {% if moderegistration!="none" and masteridentity=="SQL"%}
            <li><a href="{{ path('cadoles_core_registration') }}" title="Inscription"><i class="fa fa-user-plus fa-fw"></i></a>
        {% endif %}

        <li>
        {% if mode_auth == "SAML" %}
          <a href="{{ path('lightsaml_sp.login') }}" title="Connexion"><i class="fa fa-sign-in-alt fa-fw"></i></a>
        {% elseif mode_auth == "CAS"  %}
          <a href="{{ path('cas_sp.login') }}" title="Connexion"><i class="fa fa-sign-in-alt fa-fw"></i></a>
        {% elseif mode_auth == "SQL"  %}
          <a href="{{ path('cadoles_core_login') }}" title="Connexion"><i class="fa fa-sign-in-alt fa-fw"></i></a>
        {% elseif mode_auth == "LDAP"  %}
          <a href="{{ path('cadoles_core_ldap_login') }}" title="Connexion"><i class="fa fa-sign-in-alt fa-fw"></i></a>
        {% endif %}

        </li>
    {% endif %}