summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-11 00:41:31 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-11 00:41:31 +0100
commitb4410a78b633c5060c410caf37c5b9aa46d379a0 (patch)
tree3d8ea7384e6ff2e30912a92ce646c0f03dc9f2ad
parentdb267d32e88194df3acac7d40396daf62a754bf1 (diff)
downloadpadlite-teams-b4410a78b633c5060c410caf37c5b9aa46d379a0.tar.gz
padlite-teams-b4410a78b633c5060c410caf37c5b9aa46d379a0.tar.bz2
padlite-teams-b4410a78b633c5060c410caf37c5b9aa46d379a0.zip
templates: is_authenticated() is a function
-rw-r--r--templates/layout.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/layout.html b/templates/layout.html
index b102989..255056c 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -51,7 +51,7 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
- {% if current_user.is_authenticated %}
+ {% if current_user.is_authenticated() %}
<li><a href="{{ url_for('logout') }}"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
{% else %}
<li><a href="{{ url_for('login') }}"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>