Commit 20e5d67d authored by xuxin's avatar xuxin

不允许 非 vps创建者以及父账户 删除vps

parent b242585c
...@@ -123,6 +123,8 @@ public class VpsServiceImpl implements VpsService { ...@@ -123,6 +123,8 @@ public class VpsServiceImpl implements VpsService {
// 删除 UserVpsDto 中 UserVpsList 分配的 vpsId // 删除 UserVpsDto 中 UserVpsList 分配的 vpsId
userId1 -> userVpsRepository.deleteVpsIdOfUserVpsList(userId1, vpsId) userId1 -> userVpsRepository.deleteVpsIdOfUserVpsList(userId1, vpsId)
); );
} else {
throw new ClientRequestException(VpsErrorCode.VPS_NOT_ACCESS);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment