Skip to content

Commit

Permalink
Correctly show unpublished root pages in preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Dec 4, 2019
1 parent 59288ee commit b5dff07
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ private function setTargetPageForNavigationItems(array $navigationItems, array $
*/
private function isPagePublished(PageModel $page)
{
if (\defined('BE_USER_LOGGED_IN') && true === BE_USER_LOGGED_IN) {
return true;
}

$time = time();

return $page->published
Expand Down

0 comments on commit b5dff07

Please sign in to comment.