Don't change parent protection when editing child protection

This commit is contained in:
Kenn Jacobsen
2019-08-13 21:14:28 +02:00
committed by Sebastiaan Janssen
parent f1f9e1742e
commit 4743fc0e1d

View File

@@ -2297,7 +2297,7 @@ namespace Umbraco.Web.Editors
}
var entry = Services.PublicAccessService.GetEntryForContent(content);
if (entry == null)
if (entry == null || entry.ProtectedNodeId != content.Id)
{
return Request.CreateResponse(HttpStatusCode.OK);
}
@@ -2379,7 +2379,7 @@ namespace Umbraco.Web.Editors
var entry = Services.PublicAccessService.GetEntryForContent(content);
if (entry == null)
if (entry == null || entry.ProtectedNodeId != content.Id)
{
entry = new PublicAccessEntry(content, loginPage, errorPage, new List<PublicAccessRule>());