Skip to content

Commit

Permalink
Merge pull request #20535 from abpframework/auto-merge/rel-8-3/2908
Browse files Browse the repository at this point in the history
Merge branch dev with rel-8.3
  • Loading branch information
maliming authored Aug 16, 2024
2 parents 829d781 + 681bb34 commit d0ff974
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public virtual async Task<IdentityRoleDto> UpdateAsync(Guid id, IdentityRoleUpda

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

0 comments on commit d0ff974

Please sign in to comment.