Skip to content

Commit 04bd5d0

Browse files
authored
Merge pull request #131 from acjh/patch-10
Remove duplicate check done in AbpRoleManager
2 parents 8eb2944 + 095053a commit 04bd5d0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Application/Roles/RoleAppService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ public override async Task Delete(EntityDto<int> input)
7373
CheckDeletePermission();
7474

7575
var role = await _roleManager.FindByIdAsync(input.Id.ToString());
76-
if (role.IsStatic)
77-
{
78-
throw new UserFriendlyException(L("CanNotDeleteStaticRole"));
79-
}
80-
8176
var users = await _userManager.GetUsersInRoleAsync(role.NormalizedName);
8277

8378
foreach (var user in users)

0 commit comments

Comments
 (0)