Browse Source
Use ResourceName instead of PolicyName.
pull/6532/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.Authorization/Microsoft/AspNetCore/Authorization/AbpAuthorizationServiceExtensions.cs
|
|
@ -105,7 +105,7 @@ namespace Microsoft.AspNetCore.Authorization |
|
|
if (!await authorizationService.IsGrantedAsync(resource, requirement)) |
|
|
if (!await authorizationService.IsGrantedAsync(resource, requirement)) |
|
|
{ |
|
|
{ |
|
|
throw new AbpAuthorizationException(code: AbpAuthorizationErrorCodes.GivenRequirementHasNotGrantedForGivenResource) |
|
|
throw new AbpAuthorizationException(code: AbpAuthorizationErrorCodes.GivenRequirementHasNotGrantedForGivenResource) |
|
|
.WithData("PolicyName", resource); |
|
|
.WithData("ResourceName", resource); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|