Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Access information for "non duplicated" local tasks is not retained, so all tasks show regardless of whether the user has access. Clicking results in Access Denied.
Example: we use Display Suite's ability to show a "Manage Display" tab for authorized users. Moderation Sidebar shows the button/task to everyone, regardless of access.
Proposed Resolution
Just need to copy over the #access key in the new tabs array. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#3 | access-after.png | 48.44 KB | joelpittet |
#3 | access.png | 94.05 KB | joelpittet |
#2 | moderation_sidebar-task-access-3008436-2.patch | 521 bytes | justcaldwell |
|
Comments
Comment #2
justcaldwellPatch attached -- about as simple as they come :)
Comment #3
joelpittetThanks @justcaldwell, that does the trick!
Before:
After:
Comment #5
joelpittetI've committed this thanks @justcaldwell and pushed it to the dev branch.