Admin user_id to string in template for it to show

This commit is contained in:
Jeremy Zhang 2018-01-24 06:09:18 +00:00
parent 45f33971ed
commit 078ddaae6a

View File

@ -33,7 +33,7 @@
<li><a href="{{ url_for('user.dashboard') }}">Dashboard</a></li> <li><a href="{{ url_for('user.dashboard') }}">Dashboard</a></li>
<li class="divider"></li> <li class="divider"></li>
<li><a href="{{ url_for('user.donate_get') }}"><i class="material-icons">monetization_on</i></nbr>{{ session["tokens"] }}</a></li> <li><a href="{{ url_for('user.donate_get') }}"><i class="material-icons">monetization_on</i></nbr>{{ session["tokens"] }}</a></li>
{% if session['user_id'] is defined and session['user_id'] in devs %} {% if session['user_id'] is defined and session['user_id']|string in devs %}
<li class="divider"></li> <li class="divider"></li>
<li><a href="{{ url_for('admin.index') }}">Admin</a></li> <li><a href="{{ url_for('admin.index') }}">Admin</a></li>
{% endif %} {% endif %}