Browse Source

Use ResourceName instead of PolicyName.

pull/6532/head
maliming 6 years ago
committed by GitHub
parent
commit
318def0ca3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/src/Volo.Abp.Authorization/Microsoft/AspNetCore/Authorization/AbpAuthorizationServiceExtensions.cs

2
framework/src/Volo.Abp.Authorization/Microsoft/AspNetCore/Authorization/AbpAuthorizationServiceExtensions.cs

@ -105,7 +105,7 @@ namespace Microsoft.AspNetCore.Authorization
if (!await authorizationService.IsGrantedAsync(resource, requirement))
{
throw new AbpAuthorizationException(code: AbpAuthorizationErrorCodes.GivenRequirementHasNotGrantedForGivenResource)
.WithData("PolicyName", resource);
.WithData("ResourceName", resource);
}
}

Loading…
Cancel
Save