Skip to content

Commit

Permalink
add missing line deleted by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Feb 16, 2025
1 parent 37b6995 commit 89149a9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public ResponseEntity<ExampleSubmission> getExampleSubmission(@PathVariable Long
if (exampleSubmission.getExercise().getExerciseType() == ExerciseType.TEXT && exampleSubmission.getSubmission() != null) {
Optional<TextSubmission> textSubmission = textSubmissionExportApi.orElseThrow(() -> new ApiNotPresentException(TextSubmissionExportApi.class, PROFILE_CORE))
.getSubmissionForExampleSubmission(exampleSubmission.getSubmission().getId());
textSubmission.ifPresent(exampleSubmission::setSubmission);
}

authCheckService.checkHasAtLeastRoleForExerciseElseThrow(Role.TEACHING_ASSISTANT, exampleSubmission.getExercise(), null);
Expand Down

0 comments on commit 89149a9

Please sign in to comment.