Ver Fonte

fix:修复非匿名访问此方法时,自动添加机构租户过滤器,导致机构label为null 的问题

Signed-off-by: ir0nmax <ir0nmax@wogof.com>
ir0nmax há 1 ano atrás
pai
commit
3f5569411d

+ 2 - 2
Admin.NET/Admin.NET.Core/Service/Tenant/SysTenantService.cs

@@ -101,8 +101,8 @@ public class SysTenantService : IDynamicApiController, ITransient
     public async Task<dynamic> GetList()
     {
         return await _sysTenantRep.AsQueryable()
-            .LeftJoin<SysOrg>((u, a) => u.OrgId == a.Id)
-            .Where(u => u.Status == StatusEnum.Enable)
+           .LeftJoin<SysOrg>((u, a) => u.OrgId == a.Id).ClearFilter()
+           .Where(u => u.Status == StatusEnum.Enable && u.IsDelete == false)
             .Select((u, a) => new
             {
                 Label = a.Name,