Fix IdentityUserAppService.Delete

pull/905/head
Halil ibrahim Kalkan 7 years ago
parent 65b6dcf959
commit 1b0626752c

@ -80,7 +80,7 @@ namespace Volo.Abp.Identity
[Authorize(IdentityPermissions.Users.Delete)] [Authorize(IdentityPermissions.Users.Delete)]
public async Task DeleteAsync(Guid id) public async Task DeleteAsync(Guid id)
{ {
if (CurrentUser.Id.Value == id) if (CurrentUser.Id == id)
{ {
throw new BusinessException(code: IdentityErrorCodes.UserSelfDeletion); throw new BusinessException(code: IdentityErrorCodes.UserSelfDeletion);
} }

Loading…
Cancel
Save