Problem/Motivation

The default recipe of each of the six role modules (modules/cucumber_user_role_*/recipes/default/recipe.yml) grants the Admin role can view <role>_dashboard dashboard. Since the switch to Web Dashboard the permission is can view <role>_dashboard webdashboard, so Drupal drops the grant and logs an error for every role module. The Admin role cannot open the role dashboards the README says it can.

Non-existent permission(s) assigned to role "Admin" (admin) were removed. Invalid permission(s): can view tester_dashboard dashboard.

Seen on Cucumber User Roles 12.0.6 (12.0.x-dev), Drupal 11.4.12, PHP 8.4.

Steps to reproduce

  1. Install Cucumber and enable a role module: drush en cucumber_user_role_tester -y
  2. Read the log: drush watchdog:show --type=user --severity=Error
  3. See the error above; drush role:list --filter=admin has no can view tester_dashboard webdashboard.

Proposed resolution

Grant can view <role>_dashboard webdashboard in the six role recipes, and give it to the Admin role of sites that already installed the role modules with an update function.

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ✅ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • fix: #3637872 Grant the Admin role the Web Dashboard permission of each role dashboard
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 6d4a7fae on 12.0.x
    fix: #3637872 Grant the Admin role the Web Dashboard permission of each...
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed

Merged in !19, pipeline 1045257 green.

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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.