Skip to content

Commit

Permalink
[#83] Login: fix option hiden menu login when user is logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mathben committed Apr 1, 2018
1 parent 916ec92 commit 3dd83bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/partials/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<li ng-class="{ active: isActive('/admin') }"><a href="admin" style="color:red;"><span class="glyphicon glyphicon-king"></span> Admin</a></li>
{% end %}

{% if not disable_login and not hide_menu_login %}
{% if not disable_login and (not hide_menu_login or current_user) %}
{% if current_user %}
<li><a href="/profile/"><span class="glyphicon glyphicon-user"></span> {{current_user.get("username")}}</a></li>
<li><a href="/logout"><span class="glyphicon glyphicon-log-out"></span> Déconnexion</a></li>
Expand Down

0 comments on commit 3dd83bd

Please sign in to comment.