Check if authorizationPolicy is null.

pull/2659/head
maliming 5 years ago
parent 9f2b49c2d5
commit 88b8f6ed83

@ -29,6 +29,11 @@ namespace Volo.Abp.Authorization
var authorizationPolicy = await AuthorizationPolicy.CombineAsync(_abpAuthorizationPolicyProvider, var authorizationPolicy = await AuthorizationPolicy.CombineAsync(_abpAuthorizationPolicyProvider,
GetAuthorizationDataAttributes(context.Method)); GetAuthorizationDataAttributes(context.Method));
if (authorizationPolicy == null)
{
return;
}
await _abpAuthorizationService.CheckAsync(authorizationPolicy); await _abpAuthorizationService.CheckAsync(authorizationPolicy);
} }

Loading…
Cancel
Save