Always show assignment solutions to teachers
This commit is contained in:
parent
001ec7e6fa
commit
b2f92ecbc7
|
|
@ -64,7 +64,7 @@ class AssignmentNode(DjangoObjectType):
|
|||
return []
|
||||
|
||||
def resolve_solution(self, info, **kwargs):
|
||||
if are_solutions_enabled_for(info.context.user, self.module) and self.solution is not None:
|
||||
if (info.context.user.is_teacher() or are_solutions_enabled_for(info.context.user, self.module)) and self.solution is not None:
|
||||
return self.solution
|
||||
else:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in New Issue