This project is not covered by Drupal’s security advisory policy.
Layout Builder Block Restrictions lets administrators control which user roles can modify selected blocks in Drupal’s Layout Builder. It helps protect shared layout elements while allowing editors to work with other blocks on the page.
### Features
- Configure restrictions for custom block types, individual reusable blocks, Views blocks, and other available block plugins.
- Prevent selected roles from configuring, moving, or removing matching blocks.
- Prevent removal of sections containing restricted blocks.
- Hide restricted blocks’ contextual editing actions and disable dragging in Layout Builder.
- Restrict direct editing and deletion of matching custom block content.
- Add or remove restriction rules through a configuration page.
- Allow trusted users to bypass restrictions through a dedicated permission.
### How it works
Each rule pairs a block selection with one or more restricted roles. A block type rule applies to all inline and reusable blocks of that type. An individual reusable block rule applies to that specific block wherever it is placed.
Restrictions apply across the site’s Layout Builder layouts. Published blocks remain visible to visitors, and editors can continue working with unrestricted blocks.
The module discovers the site’s existing roles and available blocks. It does not create roles or require a specific theme or distribution.
### Configuration
After enabling the module:
1. Grant the **Administer Layout Builder block restrictions** permission to the appropriate administrators.
2. Go to **Configuration → Content authoring → Layout Builder Block Restrictions**, or use the module’s **Configure** link on Extend.
3. Select the blocks and roles to restrict, then save the configuration.
Users with **Bypass Layout Builder block restrictions** are exempt from the configured restrictions.
### Scope
This module controls editing operations on existing blocks. It does not restrict adding new blocks or change published block visibility. Rules are site-wide rather than specific to an individual page.
Full layout resets or reverts, deletion of the containing page, configuration imports, and operations provided by third-party modules are outside its scope.
### Requirements
- Drupal 10.3 or later, or Drupal 11.
- Core Layout Builder, Custom Block, and User modules.
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Access control, Administration tools, Content editing experience
- Ecosystem: Layout Builder
- Created by aneesa_khanam on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
