Browse Source

Merge branch 'dev' of https://github.com/volosoft/abp into dev

pull/6532/head
Yunus Emre Kalkan 6 years ago
parent
commit
9305388e89
  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