Skip to content

Commit

Permalink
xui:roles作为String存储
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Jan 23, 2025
1 parent e0765de commit 9bae2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nop-web/src/main/java/io/nop/web/page/PageProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected Object transformPermissions(Object value) {
Set<String> roles = rolePermissionMapping.getRolesWithPermission(permissions);
Set<String> oldRoles = ConvertHelper.toCsvSet(map.get(WebConstants.ATTR_XUI_ROLES));
Set<String> merged = CollectionHelper.mergeSet(roles, oldRoles);
map.put(WebConstants.ATTR_XUI_ROLES, merged);
map.put(WebConstants.ATTR_XUI_ROLES, StringHelper.join(merged,","));
return map;
}

Expand Down

0 comments on commit 9bae2f5

Please sign in to comment.