removed unnecessary operations
This commit is contained in:
parent
36b17e4ef1
commit
a792fd34c1
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue