退出接口修改-查询用户详情添加管理员的角色名

develop
guyuliang 2024-08-23 15:13:42 +08:00
parent bcd5859129
commit c9409b33cd
1 changed files with 1 additions and 1 deletions

View File

@ -780,7 +780,7 @@ public class UserServiceImpl implements UserService {
//给用户设置管理端的角色名
List<Role> managerRoles = roleRepository.listByManager(user.getId());
if (!ListTool.isEmpty(roles)) {
if (!ListTool.isEmpty(managerRoles)) {
for (Role role : managerRoles) {
if(!roleNames.contains(role.getName())){
roleNames.add(role.getName());