1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 17:42:24 +00:00

Juries have more rights

This commit is contained in:
Yohann D'ANELLO 2020-05-06 21:13:30 +02:00
parent d89f2c266d
commit 2a97dab5b6

View File

@ -157,7 +157,7 @@ class DocumentView(LoginRequiredMixin, View):
if isinstance(doc, Solution): if isinstance(doc, Solution):
for pool in doc.pools.all(): for pool in doc.pools.all():
if request.user in pool.juries: if request.user in pool.juries.all():
grant = True grant = True
break break
if pool.round == 2 and timezone.now() < doc.tournament.date_solutions_2: if pool.round == 2 and timezone.now() < doc.tournament.date_solutions_2: