Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit 1228414

Browse files
authored
show only readable pages - fix #5
1 parent 262a256 commit 1228414

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PagesDisplaySection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
$pages = $q->result();
2929

3030
if(is_a($pages, 'Kirby\\Cms\\Pages')) {
31+
// show only readable
32+
$pages = $pages->filterBy("isReadable", true);
33+
3134
// sort
3235
if ($this->sortBy) {
3336
$pages = $pages->sortBy(...Str::split($this->sortBy, ' '));

0 commit comments

Comments
 (0)