Permission conflict for bundles with the same name

Created on 24 January 2022, almost 3 years ago
Updated 27 February 2023, over 1 year ago

Problem/Motivation

https://git.drupalcode.org/project/entity_print/-/blob/8.x-2.x/src/Entit...

$permissions['entity print access bundle ' . $bundle_key] = [

This creates a possible conflict in case 2 different entity types have the same bundle.

For example if there is node:video and media:video then there will be only 1 entity print permission for both.

Proposed resolution

Include entity type in the permission key (for bundle permissions).

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary pasqualle πŸ‡­πŸ‡Ί Budapest

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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