set the response correctly

This commit is contained in:
Shannon
2020-06-01 16:42:44 +10:00
parent 914e261d86
commit 39eebe82cd

View File

@@ -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;
}