Paragraph Bundle Permissions should declare dependencies

Created on 18 October 2021, over 3 years ago
Updated 4 March 2025, 2 months ago

Problem/Motivation

As of 9.3.0, Permissions can define dependencies β†’ . Permissions generated by the paragraphs_type_permissions module should have a dependency of the paragraph type.

This will be important if the Paragraphs module is to benefit from UI improvements to be introduced in this issue: #2934995: Add a "Manage permissions" tab for each bundle that has associated permissions β†’ . See this comment for details related to Paragraphs: https://www.drupal.org/project/drupal/issues/2934995#comment-14259285 β†’

Steps to reproduce

NA

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Module: Type Permissions

Created by

πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

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.

  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    This can introduce problems if a paragraph type is deleted during a configuration import because this can result in fields being deleted and then if a module is uninstalled that also results in a role change you will see the dreaded

      In Role.php line 210:
    
        [RuntimeException]
        Adding non-existent permissions to a role is not allowed. The incorrect permissions are "view paragraph content products".
    
  • Pipeline finished with Success
    2 months ago
    Total: 386s
    #440223
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    I'm unsure of the need for a test beyond asserting that dependencies are being added. The update function is very basic. I've tested this against a site that was having trouble deploying a paragraph type deletion and it works great.

  • Pipeline finished with Success
    2 months ago
    #440245
Production build 0.71.5 2024