Allow admin to view submissions in ioi16

This commit is contained in:
cuom1999 2022-12-28 12:32:58 -06:00
parent 52cff64981
commit 6635c3ee99

View file

@ -345,7 +345,10 @@ class SubmissionsListBase(DiggPaginatorMixin, TitleMixin, ListView):
queryset = queryset.filter(contest_object=self.contest) queryset = queryset.filter(contest_object=self.contest)
if not self.contest.can_see_full_scoreboard(self.request.user): if not self.contest.can_see_full_scoreboard(self.request.user):
queryset = queryset.filter(user=self.request.profile) queryset = queryset.filter(user=self.request.profile)
if self.contest.format_name == "ioi16": if (
self.contest.format_name == "ioi16"
and not self.request.user.is_superuser
):
queryset = queryset.filter(user=self.request.profile) queryset = queryset.filter(user=self.request.profile)
if self.contest.freeze_after and not self.include_frozen: if self.contest.freeze_after and not self.include_frozen:
queryset = queryset.exclude( queryset = queryset.exclude(