Add permission for reverting to the default layout

Created on 8 October 2025, 14 days ago

Problem/Motivation

This came up in a client project recently. This is quite a destructive operation (But can be fixed by reverting to a past revision). There is a contrib module for this, but I think its something we should provide in core.

Steps to reproduce

  • Create a page with Layout Builder enabled
  • Log in with a user which permission to Layout Builder but otherwise should have pretty low permissions
  • See they can still revert to the default

Proposed resolution

Add a new permission to limit this functionality.
Update hook to add this permission to all roles that can use Layout Builder.

Remaining tasks

All of it.

User interface changes

Revert to defaults button will no longer show to users without the new permission

Introduced terminology

API changes

New permission introduced.

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

layout_builder.module

Created by

🇳🇿New Zealand danielveza Brisbane, AU

Live updates comments and jobs are added and updated live.
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