Skip to content

Commit

Permalink
fix(ldap): Return a new ExternalUser from multiLoadRoles in LDAP (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyom authored Aug 29, 2018
1 parent 397706a commit 2c8212d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public Map<String, Collection<Role>> multiLoadRoles(Collection<ExternalUser> use

// ExternalUser is used here as a simple data type to hold the username/roles combination.
return users.stream()
.map(u -> u.setExternalRoles(loadRoles(u)))
.map(u -> new ExternalUser().setId(u.getId()).setExternalRoles(loadRoles(u)))
.collect(Collectors.toMap(ExternalUser::getId, ExternalUser::getExternalRoles));
}

Expand Down

0 comments on commit 2c8212d

Please sign in to comment.