From fe44ca899fb85c9a9c9b984d6821db608d823ac6 Mon Sep 17 00:00:00 2001
From: Lars Beckers <lars.beckers@rwth-aachen.de>
Date: Sun, 18 Oct 2015 20:31:48 +0159
Subject: [PATCH] fix the previous bug also in other files

---
 templates/content_index.html | 2 +-
 templates/speech_index.html  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/content_index.html b/templates/content_index.html
index b076ce5..5470e49 100644
--- a/templates/content_index.html
+++ b/templates/content_index.html
@@ -4,7 +4,7 @@
             <h3 class="mdl-card__title-text">{{ event.name }}: {{ speaker.name }}</h3>
         </div>
         <div class="mdl-card__actions">
-            {% if current_user.is_authenticated() and "user" in current_user.roles %}
+            {% if current_user.is_authenticated and "user" in current_user.roles %}
             <a href="{{ url_for("speech.index", event=event.id) }}">
                 <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
                     <i class="material-icons" role="presentation">build</i>
diff --git a/templates/speech_index.html b/templates/speech_index.html
index 961f145..6c3f205 100644
--- a/templates/speech_index.html
+++ b/templates/speech_index.html
@@ -56,7 +56,7 @@
             {% endfor %}
             </tbody>
         </table>
-        {% if current_user.is_authenticated() and "user" in current_user.roles %}
+        {% if current_user.is_authenticated and "user" in current_user.roles %}
             {{ render_form(add_form, action_url=url_for('.add', next=".index", event=event_id), action_text="Add", title="Add Speaker to {}".format(event.name)) }}
         {% endif %}
     {% endfor %}
-- 
GitLab