1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 10:38:25 +02:00

Juries have more rights

This commit is contained in:
Yohann D'ANELLO
2020-05-06 21:10:48 +02:00
parent 72519c3d30
commit d89f2c266d
2 changed files with 7 additions and 8 deletions

View File

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