From bcc2f45484b685b98c93c9a3aeb22b5123f7a0c8 Mon Sep 17 00:00:00 2001 From: liujiang <569804566@qq.com> Date: Thu, 20 Nov 2025 10:16:50 +0800 Subject: [PATCH] =?UTF-8?q?master=EF=BC=9A=E5=81=9C=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E5=8F=91=E5=A2=9E=E5=8A=A0=E7=AE=A1=E7=90=86=E5=91=98=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=A0=A1=E9=AA=8C=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/xkt/service/impl/UserAuthenticationServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xkt/src/main/java/com/ruoyi/xkt/service/impl/UserAuthenticationServiceImpl.java b/xkt/src/main/java/com/ruoyi/xkt/service/impl/UserAuthenticationServiceImpl.java index 9ebaa577f..707d6ec09 100644 --- a/xkt/src/main/java/com/ruoyi/xkt/service/impl/UserAuthenticationServiceImpl.java +++ b/xkt/src/main/java/com/ruoyi/xkt/service/impl/UserAuthenticationServiceImpl.java @@ -168,6 +168,10 @@ public class UserAuthenticationServiceImpl implements IUserAuthenticationService @Override @Transactional public Integer updateDelFlag(UserAuthUpdateDelFlagDTO updateDelFlagDTO) { + // 用户是否为超级管理员 + if (!SecurityUtils.isSuperAdmin()) { + throw new ServiceException("当前用户非超级管理员,无权限操作!", HttpStatus.ERROR); + } UserAuthentication userAuth = Optional.ofNullable(this.userAuthMapper.selectOne(new LambdaQueryWrapper() .eq(UserAuthentication::getId, updateDelFlagDTO.getUserAuthId()))) .orElseThrow(() -> new ServiceException("代发不存在!", HttpStatus.ERROR));