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 unmasquerade link always appears because the access checking function is out of date.
class UnmasqueradeAccessCheck implements Drupal\Core\Routing\Access\AccessInterface
But AccessInterface is deprecated
so
public function access() {}
Is never being called
Comments
Comment #2
andypostDuplicate of #2448699: Implement caching for the masquerade block and links with a 'masquerade' cache context
Link is always visible because of #2463753: [regression] Do not bypass route access with 'link to any page' permissions for menu links
Comment #3
andypost