From 778e770e5bff790d17a2586ed763a029dac6ce19 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Mon, 12 Feb 2024 07:24:54 +0100 Subject: [PATCH] Fix superuser bug in gymnast listing --- jarvis/people/templates/gymnasts/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis/people/templates/gymnasts/list.html b/jarvis/people/templates/gymnasts/list.html index 6a6a121..b7e705c 100644 --- a/jarvis/people/templates/gymnasts/list.html +++ b/jarvis/people/templates/gymnasts/list.html @@ -48,8 +48,8 @@ {% endif %} - {% if season_information.gymnast.id in request.session.available_gymnast %}{% endif %}{{ season_information.gymnast.last_name }} - {% if season_information.gymnast.id in request.session.available_gymnast %}{% endif %}{{ season_information.gymnast.first_name }} + {% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %}{% endif %}{{ season_information.gymnast.last_name }} + {% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %}{% endif %}{{ season_information.gymnast.first_name }} {{ season_information.gymnast.get_gender_display }} {{ season_information.gymnast.age }} {{ season_information.get_category_display }}