Dun.Jason há 1 ano atrás
pai
commit
429ff85640

+ 1 - 1
src/Hotline.Api/Controllers/OrgController.cs

@@ -179,7 +179,7 @@ namespace Hotline.Api.Controllers
             }
             else
             {
-                return await _systemOrganizeRepository.GetCanUseOrgByUser();
+                return await _systemOrganizeRepository.GetCanUseOrgByOrgCode(_sessionContext.RequiredOrgId);
             }
         }
 

+ 1 - 1
src/Hotline/Settings/ISystemOrganizeRepository.cs

@@ -9,7 +9,7 @@ namespace Hotline.Settings
 
         Task<IReadOnlyList<SystemOrganize>> GetCanUseOrg();
 
-        Task<IReadOnlyList<SystemOrganize>> GetCanUseOrgByUser();
+        Task<IReadOnlyList<SystemOrganize>> GetCanUseOrgByOrgCode(string orgCode);
 
         //Task<string> GetNewOrgCode(string? parentId);
     }