Merge remote-tracking branch 'origin/main'

This commit is contained in:
卢序振 2024-07-11 16:19:28 +08:00
commit f70b20fc8d

View File

@ -236,7 +236,7 @@ public class SysUserServiceImpl implements ISysUserService {
public void checkUserDataScope(SysUser user) { public void checkUserDataScope(SysUser user) {
if (!SysUser.isAdmin(SecurityUtils.getUserId())) { if (!SysUser.isAdmin(SecurityUtils.getUserId())) {
// SysUser user = new SysUser(); // SysUser user = new SysUser();
// user.setUserId(userId); // user.setUserId(SecurityUtils.getUserId());
List<SysUser> users = SpringUtils.getAopProxy(this).selectUserList(user); List<SysUser> users = SpringUtils.getAopProxy(this).selectUserList(user);
if (StringUtils.isEmpty(users)) { if (StringUtils.isEmpty(users)) {
throw new ServiceException("没有权限访问用户数据!"); throw new ServiceException("没有权限访问用户数据!");