Skip to content
Snippets Groups Projects

Added permission granularity for Block content entity types.

Open Malabya Tewari requested to merge issue/drupal-3468918:3468918-content-block-types into 11.x
1 unresolved thread

Closes #3468918

Merge request reports

Members who can merge are allowed to add commits.

Merge request pipeline #258161 passed

Pipeline: drupal-3468918

#258169

    Merge request pipeline passed for e01f8f5d

    Ready to merge by members who can write to the target branch.
    Loading

    Activity

    Filter activity
    • Approvals
    • Assignees & reviewers
    • Comments (from bots)
    • Comments (from users)
    • Commits & branches
    • Edits
    • Labels
    • Lock status
    • Mentions
    • Merge request status
    • Tracking
    43 43 * },
    44 44 * "translation" = "Drupal\block_content\BlockContentTranslationHandler"
    45 45 * },
    46 * permission_granularity = "bundle",
    • This changes the permissions for those with content translation enabled.

      From

      "translate $entity_type_id"

      To

      "translate $bundle $entity_type_id"

      So we need an update hook, as since #3445215 permissions on roles are validated.

      So anyone with the old translate block_content permission will now get an error as this permission is gone.

      See \Drupal\user\Entity\Role::getAllValidPermissions

    • Please register or sign in to reply
  • Lee Rowlands requested changes

    requested changes

  • Please register or sign in to reply
    Loading