Fix dashboard superuser bug

This commit is contained in:
Gregory Trullemans 2024-02-11 11:34:45 +01:00
parent ad9fe6c5b3
commit ddcc775d43
1 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@
<table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table"> <table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table">
{% for gymnast in waiting_update_gymnast %} {% for gymnast in waiting_update_gymnast %}
<tr> <tr>
<td class="text-left">{% if gymnast.id in request.session.available_gymnast %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td> <td class="text-left">{% if gymnast.id in request.session.available_gymnast or request.user.is_superuser %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td>
<td class="text-right">{{ gymnast.club.acronym }}</td> <td class="text-right">{{ gymnast.club.acronym }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
@ -137,7 +137,7 @@
<table class="table tablesorter table-striped table-condensed" data-sort="table" id="gymnast_table"> <table class="table tablesorter table-striped table-condensed" data-sort="table" id="gymnast_table">
{% for gymnast in last_updated_gymnasts %} {% for gymnast in last_updated_gymnasts %}
<tr> <tr>
<td class="text-left">{% if gymnast.id in request.session.available_gymnast %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td> <td class="text-left">{% if gymnast.id in request.session.available_gymnast or request.user.is_superuser %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast }}</a></td>
<td class="text-right">{{ gymnast.club.acronym }}</td> <td class="text-right">{{ gymnast.club.acronym }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
@ -159,7 +159,7 @@
<table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table"> <table class="table table-striped table-condensed mb-0" data-sort="table" id="gymnast_table">
{% for gymnast in birthday_list %} {% for gymnast in birthday_list %}
<tr> <tr>
<td class="text-left">{% if gymnast.id in request.session.available_gymnast %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast.first_name }}</a></td> <td class="text-left">{% if gymnast.id in request.session.available_gymnast or request.user.is_superuser %}<a href="{% url 'gymnast_details' gymnast.id %}">{% endif %}{{ gymnast.first_name }}</a></td>
<td class="">{{ gymnast.birthdate | date:"j M"}}</td> <td class="">{{ gymnast.birthdate | date:"j M"}}</td>
<td class="text-right">{{ gymnast.next_age }} years</td> <td class="text-right">{{ gymnast.next_age }} years</td>
</tr> </tr>