diff --git a/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java b/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java index 3b52e6c8f6c6dbefafefbb1c6050623b168b9732..ee26b4f8c05926af3f6e8ee7283e073b0045e8d7 100644 --- a/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java +++ b/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java @@ -110,9 +110,10 @@ public class UserGetApi extends PrivateApiComponentBase { throw new UserNotFoundException(userUuid); } userVo.setTeamUuidList(authenticationInfoVo.getTeamUuidList()); - userVo.setRoleUuidList(authenticationInfoVo.getRoleUuidList()); - if (CollectionUtils.isNotEmpty(authenticationInfoVo.getRoleUuidList())) { - userVo.setRoleList(roleMapper.getRoleByUuidList(authenticationInfoVo.getRoleUuidList())); +// userVo.setRoleUuidList(authenticationInfoVo.getRoleUuidList()); + userVo.setRoleUuidList(roleMapper.getRoleUuidListByUserUuid(userUuid)); + if (CollectionUtils.isNotEmpty(userVo.getRoleUuidList())) { + userVo.setRoleList(roleMapper.getRoleByUuidList(userVo.getRoleUuidList())); } //超级管理员拥有所有权限 if (userVo.getIsSuperAdmin() != null && userVo.getIsSuperAdmin()) {