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
- Install Cucumber and enable a role module:
drush en cucumber_user_role_tester -y - Read the log:
drush watchdog:show --type=user --severity=Error - See the error above;
drush role:list --filter=adminhas nocan 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
Issue fork cucumber_user_roles-3637872
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
Comment #4
rajab natshahMerged in !19, pipeline 1045257 green.
Comment #6
rajab natshah✅ Released cucumber_user_roles 12.0.7