From ce944719414aa262a4b9b35b360000ddc1613210 Mon Sep 17 00:00:00 2001 From: cjy Date: Fri, 13 Sep 2024 19:32:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs b/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs index e1e52b0d..14a6e277 100644 --- a/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs +++ b/ds-wms-service/DS.WMS.Core/Sys/Method/CommonService.cs @@ -1454,7 +1454,7 @@ public class CommonService : ICommonService var rule = tenantDb.Queryable() .First(u => u.UserId == long.Parse(user.UserId) && u.PermissionEntity.ToLower() == moduleName && u.Status == StatusEnum.Enable); - if (rule == null) return db.Queryable(); //没有设置数据规则,那么视为该资源允许被任何主体查看 + if (rule == null) return tenantDb.Queryable(); //没有设置数据规则,那么视为该资源允许被任何主体查看 #region 可视权限