From 9bae2f53543bcb0c313a339a3f8de84fdb5f7e1c Mon Sep 17 00:00:00 2001 From: canonical Date: Thu, 23 Jan 2025 14:33:25 +0800 Subject: [PATCH] =?UTF-8?q?xui:roles=E4=BD=9C=E4=B8=BAString=E5=AD=98?= =?UTF-8?q?=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nop-web/src/main/java/io/nop/web/page/PageProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nop-web/src/main/java/io/nop/web/page/PageProvider.java b/nop-web/src/main/java/io/nop/web/page/PageProvider.java index 147a09449..4abd03957 100644 --- a/nop-web/src/main/java/io/nop/web/page/PageProvider.java +++ b/nop-web/src/main/java/io/nop/web/page/PageProvider.java @@ -197,7 +197,7 @@ protected Object transformPermissions(Object value) { Set roles = rolePermissionMapping.getRolesWithPermission(permissions); Set oldRoles = ConvertHelper.toCsvSet(map.get(WebConstants.ATTR_XUI_ROLES)); Set merged = CollectionHelper.mergeSet(roles, oldRoles); - map.put(WebConstants.ATTR_XUI_ROLES, merged); + map.put(WebConstants.ATTR_XUI_ROLES, StringHelper.join(merged,",")); return map; }