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.
Issue fork layout_paragraphs-3247325
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
Comment #2
justin2pin commentedThis 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.
Comment #3
justin2pin commentedOpening 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.
Comment #5
justin2pin commentedComment #6
justin2pin commentedAdded test coverage.
Comment #8
justin2pin commentedMerged - 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.