Commit debe137b by Yvon

6102 : bug due to missing emlcAccount on adherent of superadmin

parent e1388016
......@@ -81,7 +81,13 @@
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownUC">
{# COMPTE ou ECOMPTE : @TODO : mettre plutôt dans le header en visible tout le temps ? #}
{% if app.user and is_granted('ROLE_ADHERENT') %}
<b class="dropdown-item bg-primary text-white"> Ecompte : {{app.user.adherent.emlcAccount.balance }}</b>
<b class="dropdown-item bg-primary text-white">
{% if app.user.adherent.emlcAccount %}
Ecompte : {{app.user.adherent.emlcAccount.balance }}
{% else %}
Aucun compte emlc existant.
{% endif %}
</b>
{% elseif app.user and is_granted('ROLE_PRESTATAIRE') and getCurrentPrestataire() != null %}
<b class="dropdown-item bg-primary text-white"> Ecompte : {{getCurrentPrestataire().emlcAccount.balance }}</b>
{% elseif getCurrentGroupe() != null %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment