From 2a97dab5b64f36ba63c90456563dc9100dbe8e5f Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 6 May 2020 21:13:30 +0200 Subject: [PATCH] Juries have more rights --- apps/member/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/member/views.py b/apps/member/views.py index 8494351..9c2a74e 100644 --- a/apps/member/views.py +++ b/apps/member/views.py @@ -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: