Don't change parent protection when editing child protection
(cherry picked from commit 4743fc0e1d)
This commit is contained in:
committed by
Sebastiaan Janssen
parent
f8409be506
commit
16ac2c5589
@@ -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>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user