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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

justcaldwell created an issue. See original summary.

justcaldwell’s picture

Status: Active » Needs review
FileSize
521 bytes

Patch attached -- about as simple as they come :)

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
94.05 KB
48.44 KB

Thanks @justcaldwell, that does the trick!

Before:

After:

joelpittet’s picture

Status: Reviewed & tested by the community » Fixed

I've committed this thanks @justcaldwell and pushed it to the dev branch.

Status: Fixed » Closed (fixed)

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