Add the Layout Builder Advanced Permissions module and enable it by default

Created on 17 December 2023, 6 months ago
Updated 20 June 2024, 3 days ago

Problem/Motivation

There is no permission preventing certain roles from performing layout builder actions on sections and blocks.

For example, I want to prevent the Content Admin role from deleting blocks and sections in the layout builder.

created a list of permissions:

  • Delete sections
  • Configure sections
  • Delete custom blocks
  • Configure custom blocks
  • Move custom blocks
Remarked by Rahaf
The route is not the same as in core. and the Layout Builder Advanced Permissions module is not working well.
Maybe because we are using many extra layout builder modules

Proposed resolution

Not moving with custom permissions in Varbase 10
Utilizing the Layout Builder Advanced Permissions module

Following with fixes as in 🐛 Fix an Error when using Layout Builder permissions with the Section Library module Needs review

  • Add the Layout Builder Advanced Permissions module and enable it by default
  • Enable the Layout Builder Advanced Permissions Global by default
  • Grant the following permissions for the (Editor, Content Admin, and Site Admin) user roles.
    • access layout builder page
    • create layout builder sections
    • create layout builder blocks
    • config layout builder blocks
    • edit layout builder sections
    • remove layout builder sections
    • remove layout builder blocks
    • reorder layout builder blocks
  • Add a hook update to enable the new used modules and grant permissions to default Varbase's user roles
  • Add the patch for 🐛 Fix an Error when using Layout Builder permissions with the Section Library module Needs review ( it could be committed and released in the Section Library module

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
    Added
    Layout Builder Advanced Permissions to Varbase Layout Builder doc page
  • ➖ 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.0, varbase_layout_builder-10.1.0

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

Feature request
Status

Fixed

Version

10.1

Component

Code

Created by

🇯🇴Jordan Rahaf Albawab

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024