include unlisted pages

This commit is contained in:
Diego Najar 2021-09-12 22:06:01 +02:00
parent 1045d83004
commit f9ec67ad27

View file

@ -32,6 +32,7 @@ $drafts = $pages->getDraftDB(true);
$scheduled = $pages->getScheduledDB(true); $scheduled = $pages->getScheduledDB(true);
$static = $pages->getStaticDB(true); $static = $pages->getStaticDB(true);
$sticky = $pages->getStickyDB(true); $sticky = $pages->getStickyDB(true);
$unlisted = $pages->getUnlistedDB(true);
// If the user has the role "Author" filter the content so he/she can edit // If the user has the role "Author" filter the content so he/she can edit
if (checkRole(array('author'), false)) { if (checkRole(array('author'), false)) {
@ -40,6 +41,7 @@ if (checkRole(array('author'), false)) {
$scheduled = filterContentOwner($scheduled); $scheduled = filterContentOwner($scheduled);
$static = filterContentOwner($static); $static = filterContentOwner($static);
$sticky = filterContentOwner($sticky); $sticky = filterContentOwner($sticky);
$unlisted = filterContentOwner($unlisted);
} }
// Check if the page number is out of range // Check if the page number is out of range