Checks for access to route.
\Symfony\Component\Routing\Route $route: The route to check against.
\Symfony\Component\HttpFoundation\Request $request: The request object.
mixed TRUE if access is allowed. FALSE if not. NULL if no opinion.
Overrides AccessCheckInterface::access
public function access(Route $route, Request $request) {
$hash = $request
->get('hash');
if (user_access('access toolbar') && $hash == _toolbar_get_subtree_hash()) {
return TRUE;
}
else {
return NULL;
}
}