Fix #198
This commit is contained in:
parent
9291cbc50b
commit
1921387b56
|
|
@ -100,9 +100,9 @@ namespace Microsoft.AspNet.Mvc
|
|||
|
||||
await authZPipeline.InvokeAsync();
|
||||
|
||||
if (authZContext.ActionResult == null &&
|
||||
!authZContext.HasFailed &&
|
||||
authZEndPoint.WasEndPointCalled)
|
||||
if (authZContext.ActionResult != null ||
|
||||
authZContext.HasFailed ||
|
||||
!authZEndPoint.WasEndPointCalled)
|
||||
{
|
||||
// User cleaned out the result but we failed or short circuited the end point.
|
||||
return authZContext.ActionResult ?? new HttpStatusCodeResult(401);
|
||||
|
|
|
|||
Loading…
Reference in New Issue