Problem/Motivation

Canvas Override only provides global permissions. Sites with multiple enabled content types cannot grant access to Canvas layouts on one type without granting access to all others.

Canvas Actions

Proposed resolution

Generate three dynamic permissions per enabled content type, following Drupal core's NodePermissions pattern:

  • use canvas override for {bundle}
  • reset canvas layout for {bundle}
  • edit canvas default template for {bundle} (restricted)

Titles use the %type_name: Description convention so permissions group by content type in the permissions UI.

  • CanvasOverridePermissions — generates three permissions per enabled bundle.
  • CanvasTabAccessCheck and CanvasResetAccessCheck — check per-bundle permissions alongside global ones.
  • hook_menu_local_tasks_alter — tab visibility checks include per-bundle permissions for all three tabs.
  • CanvasOverridePermissionsTest — unit tests updated (8 tests, 98 assertions).

Canvas Override Permissions

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ✅ Automated unit testing coverage
  • ✅ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ✅ Readability
  • ✅ Accessibility
  • ✅ Performance
  • ✅ Security
  • ✅ Documentation
  • ✅ Code review by maintainers
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Release notes snippet
  • ✅ Release canvas_override-1.0.0-alpha2

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • feat: #3583255 Add per-content-type permissions for Canvas Override, Reset Canvas layout, and Edit Canvas default template tabs

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed b7c249bd on 1.0.x
    feat: #3583255 Add per-content-type permissions for Canvas Override,...
rajab natshah’s picture

Assigned: rajab natshah » josebc
Status: Active » Needs review
rajab natshah’s picture

Assigned: josebc » Unassigned
Issue summary: View changes
Status: Needs review » Fixed
Issue tags: +canvas_override-1.0.0-alpha2

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Issue summary: View changes