AuthZ: Eliminate extra ToArray()

This commit is contained in:
Hao Kung 2017-06-27 10:31:08 -07:00
parent 717625c948
commit 80383606d3
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ namespace Microsoft.AspNetCore.Authorization
throw new ArgumentNullException(nameof(policy));
}
return service.AuthorizeAsync(user, resource, policy.Requirements.ToArray());
return service.AuthorizeAsync(user, resource, policy.Requirements);
}
/// <summary>