From 957f04dcf149181d253c1c5dbb9ab2b75f9a3b69 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 1 Jun 2022 11:53:17 -0500 Subject: [PATCH] Relax access check --- judge/views/submission.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/judge/views/submission.py b/judge/views/submission.py index c196445..c52da75 100644 --- a/judge/views/submission.py +++ b/judge/views/submission.py @@ -753,11 +753,6 @@ class UserContestSubmissions(ForceContestMixin, UserProblemSubmissions): self.contest.name, ) - def access_check(self, request): - super(UserContestSubmissions, self).access_check(request) - if not self.contest.users.filter(user_id=self.profile.id).exists(): - raise Http404() - def get_content_title(self): if self.problem.is_accessible_by(self.request.user): return format_html(