|
|
@ -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); |
|
|
} |
|
|
} |
|
|
|