From bb587607e147fd92f9cd653f837075455444249f Mon Sep 17 00:00:00 2001
From: 友杰 <273666957@qq.com>
Date: 星期五, 09 六月 2023 09:58:50 +0800
Subject: [PATCH] !367 集成sms4j短信 集成sms4j短信

---
 ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysSensitiveServiceImpl.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysSensitiveServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysSensitiveServiceImpl.java
index 296574b..1302118 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysSensitiveServiceImpl.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysSensitiveServiceImpl.java
@@ -2,6 +2,7 @@
 
 import org.dromara.common.satoken.utils.LoginHelper;
 import org.dromara.common.sensitive.core.SensitiveService;
+import org.dromara.common.tenant.helper.TenantHelper;
 import org.springframework.stereotype.Service;
 
 /**
@@ -20,7 +21,10 @@
      */
     @Override
     public boolean isSensitive() {
-        return !LoginHelper.isSuperAdmin() || !LoginHelper.isTenantAdmin();
+        if (TenantHelper.isEnable()) {
+            return !LoginHelper.isSuperAdmin() || !LoginHelper.isTenantAdmin();
+        }
+        return !LoginHelper.isSuperAdmin();
     }
 
 }

--
Gitblit v1.9.3