Problem/Motivation
Currently there is only 3 permissions in this module - adminster, create, and edit. To delete, view revisions, revert revisions, or delete revisions you must have the adminster permission. This also allows access to field_ui, etc.
The paragraphs_library view's access is also set to the administer permission, and the browser view has no access restrictions at all (this should probably be fixed in a separate issue.
Proposed resolution
Add the following permissions:
- delete paragraph library item
- view paragraph library item revision history
- view paragraph library item revision
- revert paragraph library item revision
- delete paragraph library item revision
And update the route access to allow access either either these permissions OR the adminster one.
Comment | File | Size | Author |
---|---|---|---|
#4 | paragraphs-3340086-expand-permissions-for-paragraphs-library-mr48.patch | 9.35 KB | dgsiegel |
|
Issue fork paragraphs-3340086
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
acbramley CreditAttribution: acbramley at PreviousNext for Service NSW commentedTest only commit up (with the permissions)
Comment #4
dgsiegel CreditAttribution: dgsiegel commentedAs we needed this patch for our composer setup and couldn't trust Gitlab to always deliver the same file, I've reuploaded @acbramley's patch. All credit belongs to him.