logout only if logged in

This commit is contained in:
Joachim Lusiardi 2016-04-17 09:59:34 +02:00
parent a9b2781ae3
commit 6ed4110ce9

View File

@ -2,7 +2,9 @@
<li><a href='{{ url_for('create_pit_stop_form') }}'>Create Pitstop</a></li>
<li><a href='{{ url_for('get_statistics') }}'>Statistics</a></li>
<li><a href='{{ url_for('get_manual') }}'>Manual</a></li>
<li><a href='{{ url_for('security.logout') }}'>Logout</a></li>
{% if current_user.email %}
<li><a href='{{ url_for('security.logout') }}'>Logout</a></li>
{% endif %}
{%- endmacro %}
<!doctype html>