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:
@ -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():
|
||||
|
Reference in New Issue
Block a user