Allow admin to view submissions in ioi16
This commit is contained in:
parent
52cff64981
commit
6635c3ee99
1 changed files with 4 additions and 1 deletions
|
@ -345,7 +345,10 @@ class SubmissionsListBase(DiggPaginatorMixin, TitleMixin, ListView):
|
|||
queryset = queryset.filter(contest_object=self.contest)
|
||||
if not self.contest.can_see_full_scoreboard(self.request.user):
|
||||
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)
|
||||
if self.contest.freeze_after and not self.include_frozen:
|
||||
queryset = queryset.exclude(
|
||||
|
|
Loading…
Reference in a new issue