From 7c944085cbf1e169a96d7d09267f8871fe854b90 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Mon, 20 Nov 2023 18:24:42 +0800 Subject: [PATCH] =?UTF-8?q?=C2=A0Remove=20child=20ou=20dynamic=20claim=20c?= =?UTF-8?q?ache=20when=20delete=20ou?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Volo/Abp/Identity/OrganizationUnitManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs index de80228503..c4a8733787 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs @@ -84,6 +84,7 @@ public class OrganizationUnitManager : DomainService foreach (var child in children) { + await RemoveDynamicClaimCacheAsync(child); await OrganizationUnitRepository.RemoveAllMembersAsync(child); await OrganizationUnitRepository.RemoveAllRolesAsync(child); await OrganizationUnitRepository.DeleteAsync(child);