Skip to content

Commit

Permalink
CSCEXAM-1286 Clean question owners for collab exam
Browse files Browse the repository at this point in the history
  • Loading branch information
lupari committed Aug 12, 2024
1 parent 54b0bfb commit 9e02d6a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ public CompletionStage<Result> addQuestion(Long examId, Long sectionId, Http.Req
ExamSection es = section.get();
JsonNode questionBody = request.body().asJson().get("question");
Question question = JsonDeserializer.deserialize(Question.class, questionBody);
question.getQuestionOwners().forEach(this::cleanUser);
Optional<Result> error = question.getValidationResult(questionBody);
if (error.isPresent()) {
return error;
Expand Down

0 comments on commit 9e02d6a

Please sign in to comment.