Fix bug
This commit is contained in:
parent
48adf7e6b8
commit
bb78b743dd
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class SubmissionSource(SubmissionDetailBase):
|
||||||
|
|
||||||
def get_hidden_subtasks(request, submission):
|
def get_hidden_subtasks(request, submission):
|
||||||
contest = submission.contest_object
|
contest = submission.contest_object
|
||||||
if contest.is_editable_by(request.user):
|
if contest and contest.is_editable_by(request.user):
|
||||||
return set()
|
return set()
|
||||||
if contest and contest.format.has_hidden_subtasks:
|
if contest and contest.format.has_hidden_subtasks:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue