Use authed function to check if user is authed in base.html (#1283)

* Use `authed` function to check if user is authed in `base.html`
bulk-clear-sessions
Kevin Chung 2020-03-08 19:45:24 -04:00 committed by GitHub
parent 348fe5504e
commit 464f7bde58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,7 @@
<hr class="d-sm-flex d-md-flex d-lg-none">
<ul class="navbar-nav ml-md-auto d-block d-sm-flex d-md-flex">
{% if name is defined %}
{% if authed() %}
{% if type == 'admin' %}
<li class="nav-item">
<a class="nav-link" href="{{ url_for('admin.view') }}">

View File

@ -74,6 +74,7 @@ def init_template_globals(app):
app.jinja_env.globals.update(scores_visible=scores_visible)
app.jinja_env.globals.update(get_mode_as_word=get_mode_as_word)
app.jinja_env.globals.update(integrations=integrations)
app.jinja_env.globals.update(authed=authed)
def init_logs(app):