From 65f809a0fb2646c71f3a98f5d716fda2897f5dee Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 2 Oct 2013 09:53:58 +1000 Subject: [PATCH] chagnes IsAuthenticated to not return a 403 so the warning msg doesn't display. --- src/Umbraco.Web/Editors/AuthenticationController.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web/Editors/AuthenticationController.cs b/src/Umbraco.Web/Editors/AuthenticationController.cs index 793ca4be62..de211e37d2 100644 --- a/src/Umbraco.Web/Editors/AuthenticationController.cs +++ b/src/Umbraco.Web/Editors/AuthenticationController.cs @@ -44,10 +44,11 @@ namespace Umbraco.Web.Editors { return Request.CreateResponse(HttpStatusCode.OK); } - //return Forbidden (403), we don't want to return a 401 because that get's intercepted + //return BadRequest (400), we don't want to return a 401 because that get's intercepted // by our angular helper because it thinks that we need to re-perform the request once we are - // authorized. - return Request.CreateResponse(HttpStatusCode.Forbidden); + // authorized and we don't want to return a 403 because angular will show a warning msg indicating + // that the user doesn't have access to perform this function, we just want to return a normal invalid msg. + return Request.CreateResponse(HttpStatusCode.BadRequest); }