Skip to content

Commit

Permalink
#712 | Show subject type name on response
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayvenu committed Apr 11, 2024
1 parent 8e384fa commit af196a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ResponsePage getSubjects(@RequestParam(value = "lastModifiedDateTime", re
subjects = individualRepository.findSubjects(individualSearchParams, pageable);
List<GroupSubject> groupsOfAllMemberSubjects = groupSubjectRepository.findAllByMemberSubjectIn(subjects.getContent());
ArrayList<SubjectResponse> subjectResponses = new ArrayList<>();
subjects.forEach(subject -> subjectResponses.add(SubjectResponse.fromSubject(subject, !S.isEmpty(subjectTypeName), conceptRepository, conceptService, findGroupAffiliation(subject, groupsOfAllMemberSubjects), s3Service)));
subjects.forEach(subject -> subjectResponses.add(SubjectResponse.fromSubject(subject, S.isEmpty(subjectTypeName), conceptRepository, conceptService, findGroupAffiliation(subject, groupsOfAllMemberSubjects), s3Service)));
accessControlService.checkSubjectPrivileges(PrivilegeType.ViewSubject, subjects.getContent());
return new ResponsePage(subjectResponses, subjects.getNumberOfElements(), subjects.getTotalPages(), subjects.getSize());
}
Expand Down

0 comments on commit af196a5

Please sign in to comment.