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 可视权限