Skip to content

Commit

Permalink
Update OrganizationUnitManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
realLiangshiwei committed Nov 20, 2023
1 parent e6ba0bc commit 22416f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ await OrganizationUnitRepository.GetAsync(ouId, true)

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)
Expand Down

0 comments on commit 22416f7

Please sign in to comment.