Skip to content
Snippets Groups Projects
Commit 6f67d91f authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Do not expose user with free text answers for privacy concerns

parent 54411b86
Branches
Tags
No related merge requests found
...@@ -268,6 +268,11 @@ public class QuestionService implements IQuestionService { ...@@ -268,6 +268,11 @@ public class QuestionService implements IQuestionService {
if (answers == null) { if (answers == null) {
throw new NotFoundException(); throw new NotFoundException();
} }
/* Remove user for privacy concerns */
for (Answer answer : answers) {
answer.setUser(null);
}
return answers; return answers;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment