diff --git a/templates/content_index.html b/templates/content_index.html index b076ce59cc5a6850889d30807b390c6539b0d3ae..5470e49ae39700e4c08a9945e20c6c3d10c0918f 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 961f14536c2751421452158b14db583d2c227c75..6c3f205e00efe3f8b9a335aaa95574c1e3abda7e 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 %}