Duplicate action is available to users without permissions to create paragraphs

Created on 5 June 2024, 11 months ago
Updated 7 June 2024, 11 months ago

Problem/Motivation

When using Paragraphs' Paragraph Type Permissions submodule, site builders can configure permissions for individual paragraph types. When permissions are enabled and a given role does not have permission to create new paragraphs, the "Duplicate" button is still available in the LP Builder actions for the relevant components.

Steps to reproduce

  1. Enable LP, Paragraphs and Paragraphs Type Permissions
  2. Add a permissions_test paragraph type
  3. Add a paragraph field to a content type with the permissions_test paragraph enabled
  4. Add an test role
  5. DO NOT give the test role the permission "create paragraph content permissions_test"
  6. As an admin, create a test node and add a permissions_test paragraph
  7. Save the node
  8. Login as a user with the test role
  9. Edit the previously created node

Expected Result

  1. The user should not see the duplicate button for permissions_test

Observed Result

  1. The user can duplicate the permissions_test paragraph and save the node
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pixelwhip

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024