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, set a higher module weight for layout_builder_at.

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-10.0.5, varbase_layout_builder-10.1.11

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

  • Issue #3518161 by n.ghunaim: Fixed conflict of order between Layout Builder Perms and Asymmetric Translation module causing `Access Denied` on translated contents

Comments

n.ghunaim created an issue. See original summary.

n.ghunaim’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Conflict between layout_builder_perms and layout_builder_at module weights causes "Access Denied" on translated nodes » Fix conflict of order between Layout Builder Perms and Asymmetric Translation module causing `Access Denied` on translated contents
rajab natshah’s picture

Assigned: Unassigned » rajab natshah

  • rajab natshah committed 923464ac on 10.1.x
    Issue #3518161 by n.ghunaim, rajab natshah: Fix conflict of order...

  • rajab natshah committed 113210cd on 10.2.x
    Issue #3518161 by n.ghunaim, rajab natshah: Fix conflict of order...

  • rajab natshah committed 47240dc0 on 10.2.x
    Issue #3518161 by n.ghunaim, rajab natshah: Fix conflict of order...

  • rajab natshah committed 8d45fd53 on 10.0.x
    Issue #3518161 by n.ghunaim, rajab natshah: Fix conflict of order...

  • rajab natshah committed 05e460b8 on 10.1.x
    Issue #3518161 by n.ghunaim, rajab natshah: Fix conflict of order...

  • rajab natshah committed 67006957 on 10.0.x
    Issue #3518161: revert changes on 10.0.x, bug keep it for 10.1.x and 10....

  • rajab natshah committed 914d0f64 on 10.1.x
    Issue #3518161: Fix the hook update to check when layout_builder_perms...

  • rajab natshah committed c700a6a9 on 10.2.x
    Issue #3518161: Fix the hook update to check when layout_builder_perms...
rajab natshah’s picture

Assigned: rajab natshah » s.halawani
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-10.0.5, +varbase_layout_builder-10.1.11
rajab natshah’s picture

Assigned: s.halawani » Unassigned
Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Assigned: Unassigned » s.halawani
Issue summary: View changes
Issue tags: +varbase-9.1.10, +varbase_layout_builder-10.0.64
rajab natshah’s picture

Assigned: s.halawani » Unassigned
rajab natshah’s picture

It was reverted for Varbase ~9