4

The permissions page at /admin/people/permissions provides very fine grain control over which actions people can do with specific content types. How can I add all paragraph types under this permission system? We have a paragraph type that is reserved only for special cases, and we don't want anyone but a certain custom editor role creating/editing them.

I've searched for a few contrib modules, but many are not updated (or just plain abandoned) with little documentation.

0

2 Answers 2

8

Simply enable the Paragraphs sub-module Paragraphs Type Permissions. It provides CRUD permissions per Paragraphs Type.

http://cgit.drupalcode.org/paragraphs/tree/modules/paragraphs_type_permissions/paragraphs_type_permissions.info.yml?h=8.x-1.x

Allows users to configure permissions for individual Paragraphs types.

1
  • So it seems like this is what I'm looking for but this plugin is a little buggy. I'll check off permissions for a paragraph type under a given role and it will sometimes save them and sometimes not. Oct 4, 2018 at 18:14
0

I haven't used it personally, but there is a module that I believe should solve your problem:

https://www.drupal.org/project/paragraphs_access

Manage access and restriction to edit and view paragraphs.

This module provides a node access type api to allow restriction of access to paragraph items. Companion modules provide access rules, and grants which are verified when rendering the entities.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.