Book navigation block doesn't appear on unpublished book outline pages

Created on 13 December 2018, over 6 years ago
Updated 4 September 2024, 7 months ago

Problem/Motivation

Users with access to view unpublished nodes cannot see the book navigation block when they're on an unpublished book page.
This is an unexpected behaviour and it is even more pronounced after #26552: Allow users with access to unpublished nodes to create unpublished books β†’ .

Steps to reproduce

- Enable core "Book" module and set the basic configuration for the content type under /admin/structure/book/settings.
- Make sure the current user can see unpublished nodes (or at least the content types selected above).
- Create an unpublished top level book page and add few unpublished child pages.
- Place the "Book navigation" block in a visible region, selecting "Show block only on book pages" in the block settings and without further "Visibility" conditions.
- Visit any of the unpublished book pages.

Proposed resolution

Introducing a dedicated "View navigation for unpublished books" permission in order to only display the block when the user is browsing a book on unpublished nodes (which the user has already permission to see).

Remaining tasks

- None -

User interface changes

The Book navigation block will be visible on unpublished nodes if the user has been given access to "View navigation for unpublished books" permission. The block will also contain navigation links to unpublished nodes of the same book.

API changes

- None -

Data model changes

- None -

Before patch:

After patch:

πŸ› Bug report
Status

Needs work

Version

2.0

Component
BookΒ  β†’

Last updated about 2 months ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @pwolanin
Created by

πŸ‡¬πŸ‡§United Kingdom dddbbb

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024