Problem/Motivation
Block edit permissions that were working in D9, don't seem to be working anymore in D10.
In drupal 9 our editors had the following content block permissions:
Type 1: Edit content block
Type 2: Edit content block
Type 3: Edit content block
With these permissions we were able to build an admin listing of content blocks (using views) that contained the "Bulk operations" field. Editors could use the edit
link here to edit these Blocks. Important note: This view's "Access" is set to Permission: Type 1: Edit content block
After upgrading to Drupal 10, editors can still access this view (so the permission works in general), but all the edit links are missing from the "Bulk operations" column (so the permissions do not work for editing blocks anymore).
For developers (the admin role) both edit
and delete
links are present under "Operations", both in Drupal 9 and in Drupal 10.
What I tried:
* Does not work: Adding the views field for "Link to edit Content block" -- this link appears for developers (admin role) but not for editors.
* Does not work: Adding the views field for "Block content ID" and rewriting this field as a link /admin/content/block/{{ id }}
-- this link appears for editors, but when attempting to edit the block they still get "Access denied" (indicating that the problem is not with generating links, but actually with editing blocks)
* Does work (with consequences): Granting editors the Administer block content
permission -- this restores the edit links for editors, but it also adds a delete
link, and grants them edit/delete access to additional block types that they should not be able to access.
I believe this problem was introduced by changes from https://www.drupal.org/project/drupal/issues/1975064