diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs index ab88df2b4a..3cf3e7ad64 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs @@ -12,6 +12,7 @@ using umbraco.cms.businesslogic.web; using umbraco.controls; using umbraco.cms.helpers; using umbraco.BasePages; +using Umbraco.Core.Persistence; using Umbraco.Core.Security; namespace umbraco.presentation.umbraco.dialogs @@ -262,8 +263,9 @@ namespace umbraco.presentation.umbraco.dialogs p_buttons.Visible = false; pane_advanced.Visible = false; pane_simple.Visible = false; - - ClientTools.ReloadActionNode(true, false); + + var content = ApplicationContext.Current.Services.ContentService.GetById(pageId); + ClientTools.SyncTree(content.Path, true); feedback.type = global::umbraco.uicontrols.Feedback.feedbacktype.success; } @@ -281,7 +283,8 @@ namespace umbraco.presentation.umbraco.dialogs feedback.Text = ui.Text("publicAccess", "paIsRemoved", new cms.businesslogic.CMSNode(pageId).Text) + "
" + ui.Text("closeThisWindow") + ""; - ClientTools.ReloadActionNode(true, false); + var content = ApplicationContext.Current.Services.ContentService.GetById(pageId); + ClientTools.SyncTree(content.Path, true); feedback.type = global::umbraco.uicontrols.Feedback.feedbacktype.success; }