Relax access check
This commit is contained in:
parent
752ba6c605
commit
957f04dcf1
1 changed files with 0 additions and 5 deletions
|
@ -753,11 +753,6 @@ class UserContestSubmissions(ForceContestMixin, UserProblemSubmissions):
|
||||||
self.contest.name,
|
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):
|
def get_content_title(self):
|
||||||
if self.problem.is_accessible_by(self.request.user):
|
if self.problem.is_accessible_by(self.request.user):
|
||||||
return format_html(
|
return format_html(
|
||||||
|
|
Loading…
Reference in a new issue