Browse Source

Update OrganizationUnitManager.cs

pull/18204/head
liangshiwei 3 years ago
parent
commit
22416f7f78
  1. 2
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs

2
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/OrganizationUnitManager.cs

@ -200,9 +200,9 @@ public class OrganizationUnitManager : DomainService
public virtual async Task RemoveRoleFromOrganizationUnitAsync(IdentityRole role, OrganizationUnit organizationUnit)
{
await RemoveDynamicClaimCacheAsync(organizationUnit);
organizationUnit.RemoveRole(role.Id);
await OrganizationUnitRepository.UpdateAsync(organizationUnit);
await RemoveDynamicClaimCacheAsync(organizationUnit);
}
public virtual async Task RemoveDynamicClaimCacheAsync(OrganizationUnit organizationUnit)

Loading…
Cancel
Save