develop #1

Merged
antonis.lempesis merged 36 commits from develop into master 2023-01-19 12:41:45 +01:00
2 changed files with 1 additions and 6 deletions
Showing only changes of commit a792fd34c1 - Show all commits

View File

@ -297,6 +297,7 @@ public class RegistryCalls implements AaiRegistryService {
infos.forEach(info -> {
User user = new User();
// TODO: should add firstname and lastname and sub of user
user.setEmail(info.getAsJsonObject().get("email").getAsString());
users.add(user);

View File

@ -79,12 +79,6 @@ public class AuthorizationServiceImpl implements AuthorizationService {
// find couId by role name
String role = roleMappingService.getRoleIdByRepoId(repoId);
Integer couId = aaiRegistryService.getCouId(role);
if (couId != null) {
JsonArray users = aaiRegistryService.getUsersByCouId(couId);
for (JsonElement jsonElement : users) {
userList.add(jsonElement.toString());
}
}
return aaiRegistryService.getUsers(couId);
}