diff --git a/src/Volo.Abp.Identity/Volo/Abp/Identity/IdentityRole.cs b/src/Volo.Abp.Identity/Volo/Abp/Identity/IdentityRole.cs index d595d0bb77..58302389cc 100644 --- a/src/Volo.Abp.Identity/Volo/Abp/Identity/IdentityRole.cs +++ b/src/Volo.Abp.Identity/Volo/Abp/Identity/IdentityRole.cs @@ -77,6 +77,13 @@ namespace Volo.Abp.Identity } } + public void RemoveClaim([NotNull] Claim claim) + { + Check.NotNull(claim, nameof(claim)); + + Claims.RemoveAll(c => c.ClaimType == claim.Type && c.ClaimValue == claim.Value); + } + /// /// Returns the name of the role. /// @@ -85,12 +92,5 @@ namespace Volo.Abp.Identity { return Name; } - - public void RemoveClaim([NotNull] Claim claim) - { - Check.NotNull(claim, nameof(claim)); - - Claims.RemoveAll(c => c.ClaimType == claim.Type && c.ClaimValue == claim.Value); - } } }