Restrict block in Layout Builder Browser by new Block bundler permissions

Created on 7 February 2024, 11 months ago

Problem/Motivation

The layout builder browser does not respect the new create block level permissions.

Steps to reproduce

Proposed resolution

Block bundles that users do not have permission to cannot create should not be displayed in layout builder browser.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States zipymonkey Durham, NH

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

Comments & Activities

  • Issue created by @zipymonkey
  • πŸ‡ΊπŸ‡ΈUnited States zipymonkey Durham, NH

    I created a fork which adds a check to ensure that the user can create the inline_block.

  • Status changed to Needs review 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States zipymonkey Durham, NH

    I created a fork so that the new block create permissions are respected by layout builder browser

  • Status changed to Closed: works as designed 2 months ago
  • πŸ‡§πŸ‡ͺBelgium StryKaizer Belgium

    I think you are confusing non-inline block_content entities with inline block_content entities.

    The "create block content" permission reflects to creating block contents which are NOT inline
    e.g. on https://yoursite.com/block/add/image

    This permission does not target inline blocks (You can test this by disabling layout builder browser, the inline blocks are still available even without above permissions)

Production build 0.71.5 2024