From 0d2446d0f2c4a726be29af2492c236e039f7b6a6 Mon Sep 17 00:00:00 2001 From: anhefti Date: Wed, 6 May 2020 14:05:29 +0200 Subject: [PATCH] Foritfy fixes --- .../servicelayer/authorization/impl/SEBServerUser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/authorization/impl/SEBServerUser.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/authorization/impl/SEBServerUser.java index cfb17532..eb1c0595 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/authorization/impl/SEBServerUser.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/authorization/impl/SEBServerUser.java @@ -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)) {