From 39eebe82cde102d1726f66dee046f9675ff5497a Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 1 Jun 2020 16:42:44 +1000 Subject: [PATCH] set the response correctly --- .../Editors/Filters/ContentSaveValidationAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs b/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs index 21287dc469..3abebd69ed 100644 --- a/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs +++ b/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs @@ -215,7 +215,7 @@ namespace Umbraco.Web.Editors.Filters throw new HttpResponseException(HttpStatusCode.NotFound); if (accessResult != ContentPermissionsHelper.ContentAccess.Granted) - throw new HttpResponseException(HttpStatusCode.Unauthorized); + throw new HttpResponseException(actionContext.Request.CreateUserNoAccessResponse()); return accessResult == ContentPermissionsHelper.ContentAccess.Granted; }