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