diff --git a/templates/content_index.html b/templates/content_index.html index 5470e49ae39700e4c08a9945e20c6c3d10c0918f..b076ce59cc5a6850889d30807b390c6539b0d3ae 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/layout.html b/templates/layout.html index ee9b659775b42ff3352546d284e584e9e48a9be6..3cf73678f076f9c5613b0b7bc0374c00f1a49d03 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -44,7 +44,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 %} @@ -69,7 +69,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> @@ -83,7 +83,7 @@ <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> {% block additional_sidelinks %} <!-- put your additional sidelinks here --> diff --git a/templates/speech_index.html b/templates/speech_index.html index 6c3f205e00efe3f8b9a335aaa95574c1e3abda7e..961f14536c2751421452158b14db583d2c227c75 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 %}