This commit is contained in:
chenyanchang
2026-05-25 18:49:06 +08:00
parent 52edff8ecc
commit ec2ab2280a

View File

@@ -56,7 +56,9 @@ public class SysPermissionService
{
Set<SysRole> roles = new HashSet<SysRole>();
List<SysRole> roleList = roleService.selectRolesByUserId(user.getUserId());
roles.addAll(roleList);
if (roleList != null && !roleList.isEmpty()) {
roles.addAll(roleList);
}
return roles;
}