mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-02-11 15:01:20 +00:00
Fix permissions for solutions for the final
This commit is contained in:
parent
384fbfd0b2
commit
837800345b
@ -553,7 +553,8 @@ class SolutionView(LoginRequiredMixin, View):
|
|||||||
passage_participant_qs = Passage.objects.none()
|
passage_participant_qs = Passage.objects.none()
|
||||||
if not (user.registration.is_admin
|
if not (user.registration.is_admin
|
||||||
or user.registration.is_volunteer and user.registration
|
or user.registration.is_volunteer and user.registration
|
||||||
in solution.participation.tournament.organizers.all()
|
in (solution.participation.tournament
|
||||||
|
if not solution.final_solution else Tournament.final_tournament()).organizers.all()
|
||||||
or user.registration.is_volunteer
|
or user.registration.is_volunteer
|
||||||
and Passage.objects.filter(Q(pool__juries=user.registration)
|
and Passage.objects.filter(Q(pool__juries=user.registration)
|
||||||
| Q(pool__tournament__in=user.registration.organized_tournaments.all()),
|
| Q(pool__tournament__in=user.registration.organized_tournaments.all()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user