diff --git a/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageDetailPartial.cshtml b/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageDetailPartial.cshtml index 20cd8dd5..8694893d 100644 --- a/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageDetailPartial.cshtml +++ b/src/cloudscribe.SimpleContent.CompiledViews.Bootstrap5/Views/Page/PageDetailPartial.cshtml @@ -33,7 +33,7 @@ } - + @if (!Model.CurrentPage.ShowHeading) { @@ -77,6 +77,7 @@ @await Component.InvokeAsync("Navigation", new { viewName = "ChildTree", filterName = NamedNavigationFilters.ChildTree, startingNodeKey = "" }) } + @if (Model.CurrentPage != null && Model.CanEdit && !Model.ShowingDeleted && !Model.ShowingDraft && !Model.HistoryId.HasValue && Model.CurrentPage.IsPublished) {