Expand permissions for paragraphs_library_item

Created on 7 February 2023, almost 2 years ago
Updated 5 July 2023, over 1 year ago

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:

  1. delete paragraph library item
  2. view paragraph library item revision history
  3. view paragraph library item revision
  4. revert paragraph library item revision
  5. delete paragraph library item revision

And update the route access to allow access either either these permissions OR the adminster one.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇦🇺Australia acbramley

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

Comments & Activities

Production build 0.71.5 2024