Always show assignment solutions to teachers

This commit is contained in:
Ramon Wenger 2021-02-02 15:45:22 +01:00
parent 001ec7e6fa
commit b2f92ecbc7
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class AssignmentNode(DjangoObjectType):
return [] return []
def resolve_solution(self, info, **kwargs): 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 return self.solution
else: else:
return None return None