Act on Layout builder as well as in canonical paths

Created on 30 November 2022, almost 2 years ago
Updated 27 June 2023, over 1 year ago

Problem/Motivation

The Rabbit Hole module works very well on canonical pages, but it doesn't apply on layout builder.
It's confusing for editors to don't access the "view" display, but to have access to the layout builder interface.

Steps to reproduce

- Install rh_node and layout_builder modules
- Setup a content type full view mode to use layout builder, and allow overrides for individual nodes
- Setup rabbit hole for that content type to behave throwing an access denied error
- Create a node of that content type and try to access to "Layout"
- Check you would have access, which seems incorrect.

Proposed resolution

- Apply behavior for layout builder override route, as well as to the canonical route.

Remaining tasks

- Patch
- Review
- Test

User interface changes

- None

API changes

- Rabbit hole applies to layout builder override route

Data model changes

- None

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain akalam

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

Comments & Activities

Not all content is available!

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

  • First commit to issue fork.
  • @pazhyn opened merge request.
  • πŸ‡ΊπŸ‡¦Ukraine pazhyn Lutsk
  • Status changed to Closed: won't fix over 1 year ago
  • πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

    Access to entity canonical page and layout builder page are 2 different issues. Access to Layout Builder pages is controlled via multiple levels of permissions.

    Access to canonical page is very special since it uses "view" entity operation. The same operation is used when entity is viewed in other contexts (teaser, row in admin table, etc.). That's why Rabbit Hole exists - it targets specifically the canonical page and keeps the entity accessible in other places.

    I believe that handling the layout builder page is not the responsibility of this module. Please take a look into layout builder permissions, and I'm sure it'll cover your needs.

    Thanks!

Production build 0.71.5 2024