Fix submission page bug

This commit is contained in:
cuom1999 2022-06-02 22:14:01 -05:00
parent d26597c9b6
commit 253693d1ea

View file

@ -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()