|
@@ -239,12 +239,12 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|
|
if (StringUtils.isEmpty(users)) {
|
|
|
throw new ServiceException("没有权限访问用户数据!");
|
|
|
}
|
|
|
- //检查登录用户角色 是否是管理员
|
|
|
- List<SysRole> roleByUserIdList = userMapper.getRoleByUserIdList(Arrays.asList(SecurityUtils.getUserId()));
|
|
|
- List<String> roleKeyList = roleByUserIdList.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
- if (!roleKeyList.contains("admin")) {
|
|
|
- throw new ServiceException("没有权限访问用户数据!");
|
|
|
- }
|
|
|
+// //检查登录用户角色 是否是管理员
|
|
|
+// List<SysRole> roleByUserIdList = userMapper.getRoleByUserIdList(Arrays.asList(SecurityUtils.getUserId()));
|
|
|
+// List<String> roleKeyList = roleByUserIdList.stream().map(SysRole::getRoleKey).collect(Collectors.toList());
|
|
|
+// if (!roleKeyList.contains("admin")) {
|
|
|
+// throw new ServiceException("没有权限访问用户数据!");
|
|
|
+// }
|
|
|
}
|
|
|
}
|
|
|
|