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:
site image

Login Page:
site image

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anishnirmal created an issue. See original summary.

aczietlow’s picture

I'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.

aczietlow’s picture

Status: Active » Needs review
agentrickard’s picture

Status: Needs review » Needs work

Permission strings should be all lower case, otherwise looks good.

Thanks.

aczietlow’s picture

Status: Needs work » Needs review
FileSize
1.64 KB
413 bytes

Good catch.

  • agentrickard authored 577da27 on 8.x-1.x
    Merge pull request #7 from agentrickard/toolbar
    
    Issue #2856536 by...
  • agentrickard committed 82690be on 8.x-1.x authored by aczietlow
    Issue #2856536 by aczietlow, Anishnirmal: "Workbench" toolbar menu not...
agentrickard’s picture

Status: Needs review » Fixed

Committed to github and drupal.org.

natemow’s picture

Version: 8.x-1.0-alpha2 » 8.x-1.0-alpha3
Status: Fixed » Patch (to be ported)
FileSize
423 bytes

Looks like there was a typo in the perm string in workbench_toolbar(); attached patch fixes that.

agentrickard’s picture

Sigh. Thanks

agentrickard’s picture

Status: Patch (to be ported) » Fixed

Rolling alpha4.

Status: Fixed » Closed (fixed)

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

agentrickard’s picture