- Issue created by @thejimbirch
- First commit to issue fork.
- Status changed to Closed: duplicate
3 months ago 12:29pm 19 August 2024
Blocks donβt mark their permissions as granular as nodes, media, and taxonomies do. It is most likely an oversight.
\Drupal\Core\Entity\EntityTypeInterface::getPermissionGranularity().
This issue arose from the Recipes channel of the Drupal slack. Credit should be given to imalabya for the question and solution, and phenaproxima for direction and ridiculous knowledge!
If this change is made, then the grantPermissionsForEach[entity] config action would also work for content blocks.
grantPermissionsForEachBlockContentType:
- "create %bundle block content"
Add permission_granularity = "bundle",
to Drupal\block_content\Entity\BlockContent.php
N/A
Would create grantPermissionsForEachBlockContentType
config action.
N/A
N/A
TBD
Closed: duplicate
11.0 π₯
Last updated