diff --git a/src/main/java/eu/dnetlib/repo/manager/service/aai/registry/RegistryCalls.java b/src/main/java/eu/dnetlib/repo/manager/service/aai/registry/RegistryCalls.java index f71ffb7..f4c3aa5 100644 --- a/src/main/java/eu/dnetlib/repo/manager/service/aai/registry/RegistryCalls.java +++ b/src/main/java/eu/dnetlib/repo/manager/service/aai/registry/RegistryCalls.java @@ -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); diff --git a/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java b/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java index 12e4b25..656d8f1 100644 --- a/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java +++ b/src/main/java/eu/dnetlib/repo/manager/service/security/AuthorizationServiceImpl.java @@ -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); }