Problem/Motivation

We have had a number of requests for supporting more complex permissions schemas that would allow some users, while preventing others, from dragging, editing and deleting components.

Proposed resolution

At this time we are considering a submodule for providing a new permission -- or set of permissions -- that explicitly grant access for drag and drop and other LP behaviors. The subset of users needing this functionality is likely small enough that it should be handled as a submodule rather than a part of layout_paragraphs directly (similar to paragraphs_type_permissions, for example).

Remaining tasks

Develop and test.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

justin2pin created an issue. See original summary.

justin2pin’s picture

This should be much simpler / cleaner once #3247290: Make it easier for 3rd-party modules to alter the controls attached to builder components is finished, as we can use hooks to alter access to controls in the controls UI element.

justin2pin’s picture

Status: Active » Needs work

Opening a merge request mostly to enable automated tests and make it easier for colleagues to review WIP.

Remaining tasks include adding test coverage, code review, additional testing.

justin2pin’s picture

Title: Permissions for drag and drop and other supported builder behaviors. » Permission for drag and drop / reordering components
justin2pin’s picture

Added test coverage.

  • justin2pin committed 4643b34 on 2.0.x
    Issue #3247325: Permissions for drag and drop and other supported...
justin2pin’s picture

Status: Needs work » Fixed

Merged - marking as fixed. Includes tests for both the simple "reorder layout paragraphs components" permission, as well as a test module for a more complex setup.

Status: Fixed » Closed (fixed)

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