Add option to set permission to view/edit/create/delete any paragraph type when using paragraphs type permissions

Created on 22 May 2019, over 5 years ago
Updated 9 September 2024, 3 months ago

Some times we find that we want users to be able to view all paragraphs but want to restrict editing to specific paragraph types by role. This can be quite time consuming when using paragraphs type permissions as when you add a new paragraph type and have to set the permissions for each role for that paragraph type.

Proposed resolution: Alongside the existing paragraph type permissions to have permissions to override these, for instance 'View any paragraph'.

Feature request
Status

RTBC

Version

1.8

Component

Module: Type Permissions

Created by

🇬🇧United Kingdom kristiantosney

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • First commit to issue fork.
  • Merge request !144add any permissions for each operation → (Open) created by timohuisman
  • Status changed to RTBC 4 months ago
  • 🇳🇱Netherlands timohuisman Leiden, Netherlands

    Looks good! I've converted #5 to a MR.

    I'm not sure about #6, because the current behaviour is as well that you have to manually assign all the view permissions to those roles.

  • Pipeline finished with Success
    4 months ago
    Total: 257s
    #273515
  • 🇩🇪Germany mrshowerman Munich

    the current behaviour is as well that you have to manually assign all the view permissions to those roles.

    That's what I'm saying.

    Consider the following scenario:

    • I've installed Paragraphs and created a few paragraph types. All paragraphs are visible to anyone.
    • Now I want to disallow a certain role to edit paragraphs of a certain type. Everything else should stay as it is.
    • So I install and enable the submodule Paragraph Type Permissions.
    • Now all paragraph types are invisible to anyone. I have to grant view permissions on the Anonymous and Authenticated roles for every paragraph type to bring them back.

    Why do I have to do this, when I just wanted to restrict edit permissions?

    Now with the new view any paragraph permission, this is much easier, but I wonder if it could be applied automatically when the submodule is installed.

  • 🇳🇱Netherlands timohuisman Leiden, Netherlands

    I understand your point, but that's not related to the changes in this issue right? With or without the new permissions from this issue, you still have to manually grant all the view permission after enabling the Paragraph Type Permissions submodule.

    So maybe it could be a separate feature request, but in mine opinion we don't have to included in the scope of this issue.

  • 🇩🇪Germany mrshowerman Munich

    Sure, let's separate it from this task so we can get it in soon.
    RTBC+1 from me.

  • 🇳🇱Netherlands timohuisman Leiden, Netherlands
Production build 0.71.5 2024