Fix student submission page error
This commit is contained in:
parent
70ab28012b
commit
113995b520
|
|
@ -20,5 +20,5 @@ class StudentSubmissionQuery:
|
||||||
id = kwargs.get('id')
|
id = kwargs.get('id')
|
||||||
submission = get_object(StudentSubmission, id)
|
submission = get_object(StudentSubmission, id)
|
||||||
if user == submission.student or (user.is_teacher() and submission.student in user.users_in_active_school_class()):
|
if user == submission.student or (user.is_teacher() and submission.student in user.users_in_active_school_class()):
|
||||||
return root
|
return submission
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue