Merge develop into master #6

Merged
lsmyrnaios merged 32 commits from develop into master 2023-11-02 14:05:15 +01:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 0ad86025b3 - Show all commits

View File

@ -88,6 +88,9 @@ public class AuthorizationServiceImpl implements AuthorizationService {
throw new ResourceNotFoundException("Cannot find CouId for role: " + role);
}
List<Integer> coPersonIds = aaiRegistryService.getCoPersonIdsByEmail(email);
if (coPersonIds.isEmpty()) {
throw new ResourceNotFoundException("User with email '%s' could not be found..");
}
for (Integer coPersonId : coPersonIds) {
assert coPersonId != null;
aaiRegistryService.assignMemberRole(coPersonId, couId);