From 89549e22e7f8376fd5d6e267b93fa02feca0680a Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Sat, 4 May 2024 08:02:34 +0200 Subject: [PATCH] Bug fix in gymnast listing function --- jarvis/people/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jarvis/people/views.py b/jarvis/people/views.py index 5f7c925..7bbe78e 100644 --- a/jarvis/people/views.py +++ b/jarvis/people/views.py @@ -100,7 +100,7 @@ def gymnast_details(request, gymnast_id, tab=None): tab (str) de l'onglet désiré """ - if request.user.is_superuser or ( + if request.user.is_superuser or request.user.gymnast.id == gymnast_id or ( request.session.has_key("available_gymnast") and gymnast_id in request.session["available_gymnast"] ):