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:
parent
d89f2c266d
commit
2a97dab5b6
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user