From 9a26e165499a1c9632c698f692979f80b1b8446b Mon Sep 17 00:00:00 2001
From: Lars Beckers <lars.beckers@rwth-aachen.de>
Date: Sun, 18 Oct 2015 20:27:37 +0159
Subject: [PATCH] fix authenicated attribute in updated flask plugin

---
 templates/layout.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/templates/layout.html b/templates/layout.html
index 70cf0ab..fbb5dd9 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -42,7 +42,7 @@
         <header class="rede-drawer-header">
             <div class="rede-account-dropdown">
                 <span>
-                {% if current_user.is_authenticated() %}
+                {% if current_user.is_authenticated %}
                     <p class="md-24">
                         <i class="material-icons md-48">
                             {% if "user" in current_user.roles and not "admin" in current_user.roles %}
@@ -67,7 +67,7 @@
                 </button>
                 </span>
                 <ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effet" for="accbtn">
-                    {% if current_user.is_authenticated() %}
+                    {% if current_user.is_authenticated %}
                     <li class="mdl-menu__item"><a class="mdl-navigation__link" href="{{ url_for("logout") }}">Logout</a></li>
                     {% else %}
                     <li class="mdl-menu__item"><a class="mdl-navigation__link" href="{{ url_for("login") }}">Login</a></li>
@@ -77,11 +77,11 @@
             </div>
         </header>
         <nav class="rede-navigation mdl-navigation mdl-color--blue-grey-800">
-            {% if current_user.is_authenticated() and "user" in current_user.roles %}
+            {% if current_user.is_authenticated and "user" in current_user.roles %}
             <a class="mdl-navigation__link" href="{{ url_for("speech.index") }}"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">build</i>Handle speakers</a>
             {% endif %}
             <a class="mdl-navigation__link" href="{{ url_for("speech.show") }}"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">announcement</i>Pending speakers</a>
-            {% if current_user.is_authenticated() and "admin" in current_user.roles %}
+            {% if current_user.is_authenticated and "admin" in current_user.roles %}
             <a class="mdl-navigation__link" href="{{ url_for("admin.index") }}"><i class="mdl-color-text--blue-grey-400 material-icons" role="presentation">computer</i>Administration</a>
             {% endif %}
         </nav>
-- 
GitLab