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