Users without "Edit Layout Paragraphs Plugin Config" permission cannot use layout sections when editing

Created on 19 August 2020, over 4 years ago
Updated 11 September 2023, over 1 year ago

Problem/Motivation

Users without "Edit Layout Paragraphs Plugin Config" permission cannot use layout sections when editing. After selecting between 2 or 3 column layouts, the popup just spins forever.

Steps to reproduce

  1. Create a paragraph type called 'columns' and a paragraph type called 'text'.
  2. Check "Use as a Layout Section" and select "Two column" and "Three column" (from layout builder) as options on the column type.
  3. Create a node type of page.
  4. Add a paragraph reference field on page that accepts text and columns, and configure the field to use the layout paragraphs formatter on the node form.
  5. Create an editor role that has permission to add/edit/delete pages. Do not give them the "Edit Layout Paragraphs Plugin Config" permission.
  6. As an editor, create or edit a page.
  7. Adding non-layout section paragraphs (e.g. text) works without a problem. However if the editor attempts to add a column paragraph type, they get a popup with the 2 and 3 column options. But after selecting one, the popup spins forever without allowing them to continue editing.

My understanding is that the "Edit Layout Paragraphs Plugin Config" permission is only intended to prevent editing the options within the "layout configuration" fieldset. Not to prevent editing of any kind with layout sections - and certainly not in this way.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jastraat

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024