mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 04:22:23 +00:00
health_sheet field is now in StudentRegistration
This commit is contained in:
parent
b40c06fe9e
commit
1a63c1f399
@ -486,7 +486,7 @@ class HealthSheetView(LoginRequiredMixin, View):
|
||||
path = f"media/authorization/health/{filename}"
|
||||
if not os.path.exists(path):
|
||||
raise Http404
|
||||
student = ParticipantRegistration.objects.get(health_sheet__endswith=filename)
|
||||
student = StudentRegistration.objects.get(health_sheet__endswith=filename)
|
||||
user = request.user
|
||||
if not (student.user == user or user.registration.is_admin or user.registration.is_volunteer and student.team
|
||||
and student.team.participation.tournament in user.registration.organized_tournaments.all()):
|
||||
|
Loading…
Reference in New Issue
Block a user