TOC shows all pages regardless of status

Created on 8 August 2024, 3 months ago
Updated 22 August 2024, 3 months ago

Problem/Motivation

The TOC shows all book pages regardless of whether the node is published or not.

Steps to reproduce

  1. Create and publish a book. Include both published and unpublished pages in the book structure.
  2. Sign out of the site and view the book.
  3. All pages in the book are listed, even pages that are not published.
  4. Click 'Next section' until you get to a page that is not published. You'll get 'Access denied'.

Proposed resolution

When signed in to the site, if the user has access to view draft content, they should be able to see all pages in the book. However, for anonymous users the TOC should only display pages that are published (or that they have permission to see).

The 'next section' and 'previous section' links should work the same way - only link to content that the user can access.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024