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

Created on 17 December 2023, 11 months ago
Updated 14 July 2024, 4 months 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 Amman

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

Merge Requests

Comments & Activities

  • Pipeline finished with Skipped
    over 1 year ago
    #14683
  • Issue created by @rahaf albawab
  • 🇯🇴Jordan rahaf albawab Amman

    I created a list of permissions:

    1. Delete sections
    2. Configure sections
    3. Delete custom blocks
    4. Configure custom blocks
    5. Move custom blocks
  • 🇯🇴Jordan Rajab Natshah Jordan

    Have you had a look at Layout Builder Advanced Permissions module?

    It could help.
    or we could add more custom permissions from it.

  • Status changed to Postponed: needs info 11 months ago
  • Assigned to Rajab Natshah
  • Status changed to Active 11 months ago
  • Status changed to Needs review 9 months ago
  • Issue was unassigned.
  • Status changed to Needs work 8 months ago
  • 🇯🇴Jordan Rajab Natshah Jordan

    Thanks, Raha, for reporting and patching!

    While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well.

  • 🇯🇴Jordan n.ghunaim Amman - Jordan
  • 🇯🇴Jordan n.ghunaim Amman - Jordan

    After agreement and testing with Rajab, we will utilize the module Layout Builder Advanced Permissions in Varbase 10.0.x, not the custom patch or custom permissions.

  • 🇯🇴Jordan n.ghunaim Amman - Jordan
  • Status changed to Needs review 6 months ago
  • 🇯🇴Jordan n.ghunaim Amman - Jordan
  • 🇯🇴Jordan Rajab Natshah Jordan

    Moving with a better solution and setup of configs with recipes

  • Pipeline finished with Success
    6 months ago
    Total: 213s
    #178845
  • Pipeline finished with Success
    6 months ago
    Total: 264s
    #178850
  • Pipeline finished with Skipped
    6 months ago
    #178859
  • Status changed to Fixed 6 months ago
  • 🇯🇴Jordan Rajab Natshah Jordan

    ✅ Developer Documentation support on feature change/addition

    Added
    Layout Builder Advanced Permissions to Varbase Layout Builder doc page
  • 🇯🇴Jordan Rajab Natshah Jordan
    • vardot/varbase-patches - Added a patch to the Layout Builder Advanced Permissions module for Issue #3392780: Fix not valid context for entity context when editing the default layout entity types or bundles #34
    • ✅ Released vardot/varbase-patches 10.0.22
    • Tested the layout edit of the default display for entity types
  • Pipeline finished with Failed
    6 months ago
    Total: 493s
    #192215
  • Pipeline finished with Failed
    6 months ago
    Total: 170s
    #192969
  • Pipeline finished with Failed
    6 months ago
    Total: 237s
    #193001
  • Pipeline finished with Failed
    6 months ago
    Total: 165s
    #193014
  • Pipeline finished with Failed
    6 months ago
    Total: 212s
    #193159
  • Pipeline finished with Failed
    6 months ago
    Total: 146s
    #193164
  • Pipeline finished with Failed
    6 months ago
    Total: 152s
    #193240
  • Pipeline finished with Failed
    6 months ago
    Total: 152s
    #193288
  • Pipeline finished with Failed
    6 months ago
    Total: 147s
    #193297
  • Pipeline finished with Failed
    6 months ago
    Total: 148s
    #193301
  • Pipeline finished with Success
    6 months ago
    Total: 152s
    #193333
  • Pipeline finished with Success
    6 months ago
    Total: 184s
    #195806
  • Pipeline finished with Success
    6 months ago
    #195816
  • Pipeline finished with Success
    6 months ago
    Total: 213s
    #195820
  • Pipeline finished with Failed
    6 months ago
    Total: 152s
    #195840
  • Pipeline finished with Success
    6 months ago
    Total: 184s
    #195854
  • Pipeline finished with Success
    6 months ago
    Total: 152s
    #195871
  • Pipeline finished with Success
    6 months ago
    Total: 1328s
    #196023
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Success
    5 months ago
    Total: 182s
    #214147
  • Pipeline finished with Success
    5 months ago
    Total: 199s
    #214168
  • Pipeline finished with Canceled
    5 months ago
    Total: 89s
    #214180
  • Pipeline finished with Success
    5 months ago
    Total: 191s
    #214183
  • Pipeline finished with Success
    5 months ago
    #214194
  • Pipeline finished with Success
    5 months ago
    Total: 184s
    #214197
  • Pipeline finished with Success
    5 months ago
    #217856
  • Pipeline finished with Success
    5 months ago
    Total: 311s
    #217868
  • Pipeline finished with Failed
    5 months ago
    Total: 290s
    #219676
  • Pipeline finished with Manual
    5 months ago
    #219680
  • Pipeline finished with Failed
    5 months ago
    Total: 321s
    #219709
  • Pipeline finished with Failed
    5 months ago
    Total: 276s
    #219714
  • Pipeline finished with Manual
    5 months ago
    #219716
  • Pipeline finished with Failed
    5 months ago
    #219752
  • Pipeline finished with Manual
    5 months ago
    #219782
  • Pipeline finished with Manual
    5 months ago
    #219828
  • Pipeline finished with Failed
    5 months ago
    Total: 307s
    #219854
  • Pipeline finished with Manual
    5 months ago
    #219860
  • Pipeline finished with Skipped
    5 months ago
    #219863
  • Pipeline finished with Success
    5 months ago
    #222629
  • Pipeline finished with Success
    5 months ago
    Total: 2779s
    #222671
  • Pipeline finished with Success
    4 months ago
    Total: 243s
    #228215
  • Pipeline finished with Success
    4 months ago
    Total: 155s
    #231479
  • Pipeline finished with Failed
    4 months ago
    Total: 330s
    #242100
  • Pipeline finished with Canceled
    4 months ago
    Total: 31s
    #242110
  • Pipeline finished with Failed
    4 months ago
    Total: 341s
    #242111
  • Pipeline finished with Success
    4 months ago
    Total: 360s
    #242188
  • Pipeline finished with Success
    4 months ago
    #242200
  • Pipeline finished with Success
    4 months ago
    Total: 302s
    #243697
  • Pipeline finished with Success
    4 months ago
    Total: 414s
    #245201
  • Pipeline finished with Success
    3 months ago
    Total: 327s
    #251790
  • Pipeline finished with Success
    3 months ago
    Total: 113s
    #255130
  • Pipeline finished with Failed
    3 months ago
    #255173
  • Pipeline finished with Failed
    3 months ago
    Total: 153s
    #255198
  • Pipeline finished with Failed
    3 months ago
    #255209
  • Pipeline finished with Failed
    3 months ago
    Total: 139s
    #255237
  • Pipeline finished with Success
    3 months ago
    #255242
  • Pipeline finished with Success
    3 months ago
    Total: 261s
    #255245
  • Pipeline finished with Success
    3 months ago
    Total: 142s
    #255252
  • Pipeline finished with Success
    3 months ago
    Total: 150s
    #257552
  • Pipeline finished with Success
    3 months ago
    Total: 194s
    #257733
  • Pipeline finished with Skipped
    3 months ago
    #268677
Production build 0.71.5 2024