fix: 茅台预约商品,修改账号bug解决。
This commit is contained in:
@@ -155,9 +155,9 @@ public class IUserServiceImpl implements IUserService {
|
||||
|
||||
@Override
|
||||
public int updateIUser(IUser iUser) {
|
||||
if (SecurityUtils.getUserId() != 1 && !iUser.getCreateUser().equals(SecurityUtils.getUserId())) {
|
||||
throw new ServiceException("只能修改自己创建的用户");
|
||||
}
|
||||
// if (!iUser.getCreateBy().equals(SecurityUtils.getUsername())) {
|
||||
// throw new ServiceException("只能修改自己创建的用户");
|
||||
// }
|
||||
return iUserMapper.updateIUser(iUser);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user