update
This commit is contained in:
@@ -56,7 +56,9 @@ public class SysPermissionService
|
|||||||
{
|
{
|
||||||
Set<SysRole> roles = new HashSet<SysRole>();
|
Set<SysRole> roles = new HashSet<SysRole>();
|
||||||
List<SysRole> roleList = roleService.selectRolesByUserId(user.getUserId());
|
List<SysRole> roleList = roleService.selectRolesByUserId(user.getUserId());
|
||||||
|
if (roleList != null && !roleList.isEmpty()) {
|
||||||
roles.addAll(roleList);
|
roles.addAll(roleList);
|
||||||
|
}
|
||||||
return roles;
|
return roles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user