mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 07:02:22 +00:00
Fix pools for organizers, broken links
This commit is contained in:
parent
cb7c23fd68
commit
ecbbe46420
@ -447,7 +447,7 @@ class PoolDetailView(LoginRequiredMixin, DetailView):
|
||||
qs = super().get_queryset()
|
||||
user = self.request.user
|
||||
if not user.admin and user.organizes:
|
||||
qs = qs.filter(Q(juries=user) | Q(solutions__tournament__organizers=user))
|
||||
qs = qs.filter(Q(juries=user) | Q(teams__tournament__organizers=user))
|
||||
elif user.participates:
|
||||
qs = qs.filter(teams=user.team)
|
||||
return qs.distinct()
|
||||
|
Loading…
Reference in New Issue
Block a user