removed unnecessary operations

This commit is contained in:
Konstantinos Spyrou 2022-11-30 17:33:09 +02:00
parent 36b17e4ef1
commit a792fd34c1
2 changed files with 1 additions and 6 deletions

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);
}