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.
The menu "Workbench" at the "Toolbar" does not hide when the user doesn't have permission to access the workbench. I have attached the screenshots below.
Permission Page:
Login Page:
Comment | File | Size | Author |
---|---|---|---|
#8 | perm-typo-2856536-8.patch | 423 bytes | natemow |
#5 | interdiff-2856536-2--2856536-5.txt | 413 bytes | aczietlow |
#5 | workbench_toolbar-2856536-5.patch | 1.64 KB | aczietlow |
#2 | workbench_toolbar-2856536-2.patch | 1.64 KB | aczietlow |
site.PNG | 13.89 KB | Anishnirmal |
Comments
Comment #2
aczietlow CreditAttribution: aczietlow as a volunteer commentedI've wrapped the toolbar menu item in an access check to only render the menu item if a user has permission to view my workbench.
Comment #3
aczietlow CreditAttribution: aczietlow as a volunteer commentedComment #4
agentrickardPermission strings should be all lower case, otherwise looks good.
Thanks.
Comment #5
aczietlow CreditAttribution: aczietlow as a volunteer commentedGood catch.
Comment #7
agentrickardCommitted to github and drupal.org.
Comment #8
natemow CreditAttribution: natemow commentedLooks like there was a typo in the perm string in
workbench_toolbar()
; attached patch fixes that.Comment #9
agentrickardSigh. Thanks
Comment #10
agentrickardRolling alpha4.
Comment #12
agentrickard