From 5952b1c90e9d30b6111ecadbf8bc6f3cf8886abe Mon Sep 17 00:00:00 2001 From: G405G <guilongji@outlook.com> Date: 星期五, 18 十一月 2022 14:01:45 +0800 Subject: [PATCH] !253 过滤器链使用IoUtil.read方法导致request流关闭 * fix-过滤器链使用IoUtil.read方法导致request流关闭 --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysSensitiveServiceImpl.java | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysSensitiveServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysSensitiveServiceImpl.java index 40cae23..fe142ca 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysSensitiveServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysSensitiveServiceImpl.java @@ -2,7 +2,6 @@ import com.ruoyi.common.core.service.SensitiveService; import com.ruoyi.common.helper.LoginHelper; -import com.ruoyi.common.utils.SecurityUtils; import org.springframework.stereotype.Service; /** @@ -21,7 +20,7 @@ */ @Override public boolean isSensitive() { - return SecurityUtils.isAdmin(LoginHelper.getUserId()); + return !LoginHelper.isAdmin(); } } -- Gitblit v1.9.3