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
- Enable layout_builder, layout_builder_perms, and layout_builder_at.
- Configure layout builder for a content type.
- Create a node and translate it.
- Try to access layout builder on the translated version.
- 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
Comments
Comment #2
n.ghunaim commentedComment #3
rajab natshahComment #4
rajab natshahComment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshah✅ Released varbase_layout_builder-10.1.11
Comment #16
rajab natshahComment #18
rajab natshahComment #19
rajab natshahComment #20
rajab natshahIt was reverted for Varbase ~9