Juries have more rights

This commit is contained in:
Yohann D'ANELLO 2020-05-06 21:13:30 +02:00
parent d89f2c266d
commit 2a97dab5b6
1 changed files with 1 additions and 1 deletions

View File

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