From 9e2b4d1dd051ba08ac47aae35af0ec7baf72ef92 Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Mon, 19 Aug 2024 18:44:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(88734):=20=E3=80=90=E6=B0=B4=E5=B9=B3?= =?UTF-8?q?=E8=B6=8A=E6=9D=83=E3=80=91=E6=96=87=E6=A1=A3=E6=8B=86=E5=88=86?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=8E=A5=E5=8F=A3=E6=9C=AA=E5=81=9A=E6=B0=B4?= =?UTF-8?q?=E5=B9=B3=E8=B6=8A=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DocumentSplitServiceImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java index 9dd52aad..c2f6c276 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java @@ -1205,6 +1205,19 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { if (b){ // 水平越权 isHorizontalOverstep(id); + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + int count = sarFileSplitInfoService.count( + new LambdaQueryWrapper() + .eq(SarFileSplitInfoEO::getId, id) + .eq(SarFileSplitInfoEO::getAuthor, loginUser.getId())); + if (count <= 0){ + if(LanguageEnum.CN.equals(MessageUtils.getLanguage())) { + throw new JeroBootException("无权限!"); + }else{ + throw new JeroBootException("No access!"); + } + } + } // 文档拆分信息(旧) DocumentSplitInfo oldInfo = documentSplitMapper.queryDocumentSplitInfoById(id);