Skip to content

Commit

Permalink
Hide private authors on the author index page
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbiggs committed Jun 26, 2024
1 parent 2068caa commit 52d2369
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion etna/authors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ class AuthorIndexPage(BasePage):
@cached_property
def author_pages(self):
"""Return a sample of child pages for rendering in teaser."""
return self.get_children().type(AuthorPage).order_by("title").live().specific()
return (
self.get_children()
.type(AuthorPage)
.order_by("title")
.live()
.public()
.specific()
)


class AuthorPage(BasePage):
Expand Down

0 comments on commit 52d2369

Please sign in to comment.