Permissions for paragraphs types ignored

Created on 18 November 2020, over 4 years ago
Updated 5 June 2024, 10 months ago

Problem/Motivation

When a paragraphs type has it's permission to create denied to a user it still shows up in the Layout Paragraphs Widget even though the user doesn't have access to create that particular paragraph type.

Steps to reproduce

Configure a content type to use Layout Paragraphs. Install the "Paragraphs Type Permissions" submodule that comes with Paragraphs. Create a new user role and do not assign the user permissions to create a paragraph type on that reference field.

The user will still be able to add the paragraph type that they do not have permission to create.

Proposed resolution

We should check the paragraphs access control to see if the user has permission to create a specific paragraph type and if not then remove the option from the Layouts Widget form.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada erichomanchuk

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024