Foritfy fixes

This commit is contained in:
anhefti 2020-05-06 14:05:29 +02:00
parent 37ac7d96e6
commit 0d2446d0f2

View file

@ -43,7 +43,7 @@ public final class SEBServerUser implements UserDetails, CredentialsContainer {
this.authorities = Collections.unmodifiableList(
userInfo.roles
.stream()
.map(SimpleGrantedAuthority::new)
.map(role -> new SimpleGrantedAuthority(role))
.collect(Collectors.toList()));
if (CollectionUtils.isEmpty(userInfo.roles)) {