In NavigationExtraLocalTasksBlock, the access check on the local task links in the build function assumes the #access property is a value of type Drupal\Core\Access\AccesResult. But in some cases this can be a boolean value.

CommentFileSizeAuthor
#3 3512470-local-task-access-3.patch1.55 KBkensae
Command icon 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

kensae created an issue. See original summary.

kensae’s picture

StatusFileSize
new1.55 KB
kensae’s picture

Status: Active » Needs review

kriboogh made their first commit to this issue’s fork.

  • kriboogh committed 4e824c49 on 1.0.x authored by kensae
    Issue #3512470 by kensae: Local task #access property can be a boolean
    
kriboogh’s picture

Status: Needs review » Fixed
Issue tags: +ddd2025

Thanks. Modules can indeed alter the local tasks build array and set the #access to a boolean instead of the AccessResult object that core is putting on the build array.
Merged in dev.

Status: Fixed » Closed (fixed)

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