diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/UserServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/UserServiceImpl.java index 8d235cd..03bf851 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/UserServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/UserServiceImpl.java @@ -780,7 +780,7 @@ public class UserServiceImpl implements UserService { //给用户设置管理端的角色名 List 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());