Fix submission page bug
This commit is contained in:
parent
d26597c9b6
commit
253693d1ea
1 changed files with 5 additions and 4 deletions
|
@ -533,10 +533,11 @@ class ProblemSubmissionsBase(SubmissionsListBase):
|
||||||
)
|
)
|
||||||
|
|
||||||
def access_check_contest(self, request):
|
def access_check_contest(self, request):
|
||||||
if self.in_contest and not self.contest.can_see_own_scoreboard(request.user):
|
if self.in_contest:
|
||||||
raise Http404()
|
if not self.contest.can_see_own_scoreboard(request.user):
|
||||||
if not self.contest.is_accessible_by(request.user):
|
raise Http404()
|
||||||
raise Http404()
|
if not self.contest.is_accessible_by(request.user):
|
||||||
|
raise Http404()
|
||||||
|
|
||||||
def access_check(self, request):
|
def access_check(self, request):
|
||||||
if self.check_contest_in_access_check:
|
if self.check_contest_in_access_check:
|
||||||
|
|
Loading…
Reference in a new issue