Conflict between layout_builder_perms and layout_builder_at module weights causes "Access Denied" on translated nodes

Created on 9 April 2025, 17 days ago

Problem/Motivation

When both layout_builder_perms and layout_builder_at modules are enabled, accessing layout builder on translated content results in an "Access Denied" error.

This happens because both modules implement the OverridesSectionStorage plugin with the same weight. Since Drupal plugin selection is weight-sensitive, the conflict causes Drupal to randomly pick one implementation over the other, leading to broken permission logic — especially on translated nodes.

Steps to reproduce

  1. Enable layout_builder, layout_builder_perms, and layout_builder_at.
  2. Configure layout builder for a content type.
  3. Create a node and translate it.
  4. Try to access layout builder on the translated version.
  5. See "Access Denied".

Proposed resolution

To ensure layout_builder_at's plugin is registered after the one from layout_builder_perms.

This allows its OverridesSectionStorage plugin to override the one from layout_builder_perms, ensuring that translation-specific access logic (handleTranslationAccess()) runs correctly.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Active

Version

10.1

Component

Code

Created by

🇯🇴Jordan n.ghunaim Amman - Jordan

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

Comments & Activities

Production build 0.71.5 2024