let admins browse all scores

This commit is contained in:
Nikola Kubiczek 2023-03-20 18:09:11 +01:00
parent e1ff4c6f8e
commit d3917c7450

View File

@ -8,7 +8,7 @@
{% for edition in editions %}
<li>
<a class="pagination-link {% if edition.year == year %}is-current"{% elif edition.scores_available %}" href="{% url 'scores' edition.year %}"{% endif %}"
{% if not edition.scores_available %}disabled{% endif%}
{% if not edition.scores_available and not request.user.is_superuser %}disabled{% endif%}
>{{ edition.roman }}</a>
</li>
{% endfor %}