AuthZ: Eliminate extra ToArray()
This commit is contained in:
parent
717625c948
commit
80383606d3
|
|
@ -62,7 +62,7 @@ namespace Microsoft.AspNetCore.Authorization
|
||||||
throw new ArgumentNullException(nameof(policy));
|
throw new ArgumentNullException(nameof(policy));
|
||||||
}
|
}
|
||||||
|
|
||||||
return service.AuthorizeAsync(user, resource, policy.Requirements.ToArray());
|
return service.AuthorizeAsync(user, resource, policy.Requirements);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue