diff --git a/modules/identity/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityRoleAppService.cs b/modules/identity/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityRoleAppService.cs index 13c79029fa..e6563727bc 100644 --- a/modules/identity/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityRoleAppService.cs +++ b/modules/identity/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityRoleAppService.cs @@ -77,7 +77,10 @@ public class IdentityRoleAppService : IdentityAppServiceBase, IIdentityRoleAppSe role.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp); - (await RoleManager.SetRoleNameAsync(role, input.Name)).CheckErrors(); + if (role.Name != input.Name) + { + (await RoleManager.SetRoleNameAsync(role, input.Name)).CheckErrors(); + } role.IsDefault = input.IsDefault; role.IsPublic = input.IsPublic;