Add back access check

This commit is contained in:
cuom1999 2022-06-01 11:59:58 -05:00
parent 957f04dcf1
commit 1e35ba864f

View file

@ -753,6 +753,11 @@ 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(