diff --git a/youlai-gateway/src/main/java/com/youlai/gateway/security/ResourceServerManager.java b/youlai-gateway/src/main/java/com/youlai/gateway/security/ResourceServerManager.java index efd508024..23c3e4c8f 100644 --- a/youlai-gateway/src/main/java/com/youlai/gateway/security/ResourceServerManager.java +++ b/youlai-gateway/src/main/java/com/youlai/gateway/security/ResourceServerManager.java @@ -75,7 +75,7 @@ public class ResourceServerManager implements ReactiveAuthorizationManager roles = Convert.toList(String.class, permRoles.getValue()); - authorizedRoles.addAll(Convert.toList(String.class, roles)); + authorizedRoles.addAll(roles); if (requireCheck == false) { requireCheck = true; }