Foritfy fixes
This commit is contained in:
parent
37ac7d96e6
commit
0d2446d0f2
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public final class SEBServerUser implements UserDetails, CredentialsContainer {
|
||||||
this.authorities = Collections.unmodifiableList(
|
this.authorities = Collections.unmodifiableList(
|
||||||
userInfo.roles
|
userInfo.roles
|
||||||
.stream()
|
.stream()
|
||||||
.map(SimpleGrantedAuthority::new)
|
.map(role -> new SimpleGrantedAuthority(role))
|
||||||
.collect(Collectors.toList()));
|
.collect(Collectors.toList()));
|
||||||
|
|
||||||
if (CollectionUtils.isEmpty(userInfo.roles)) {
|
if (CollectionUtils.isEmpty(userInfo.roles)) {
|
||||||
|
|
Loading…
Reference in a new issue