show new search for superuser only for now

This commit is contained in:
Your Name 2024-12-30 09:40:58 -05:00 committed by Henri Dickson
parent c4b7a760c6
commit bee21c6d14
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@
{% trans "performances" %}
{% endif %}
{% endif %}
{% if user.is_authenticated %}
{% if user.is_authenticated and request.user.is_superuser %}
|
{% if request.GET.c != 'journal' %}
<a href="?q={{ request.GET.q }}&amp;c=journal">{% trans "your journal" %}</a>

View file

@ -44,7 +44,7 @@
<option {% if request.GET.c == 'performance' or '/performance/' in request.path %}selected{% endif %}
value="performance">{% trans 'Performance' %}</option>
{% endif %}
{% if request.user.is_authenticated %}
{% if request.user.is_authenticated and request.user.is_superuser %}
<option {% if request.GET.c == 'journal' or '/users/' in request.path %}selected{% endif %}
value="journal">{% trans 'Journal' %}</option>
<option {% if request.GET.c == 'timeline' or '/timeline/' in request.path %}selected{% endif %}