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.
Hi, each link should have its access checked before displaying to the user. With the menu system if a user doesn't have access to the page linked then it disappears from the menu, I would expect the same functionality from weblinks. It is possible that I may want to add a link and restrict who sees this without complicated node permissions.
To at least fix this for the weblinks_blocks I achieved this in _weblinks_blocks_content() changing:
$items[] = theme('weblinks_block_item', $node, $title_length, $urlnode, $options, $show_image, $desc);
to
if ($router_item = menu_get_item($node->url)) {
if ($router_item['access']) {
$items[] = theme('weblinks_block_item', $node, $title_length, $urlnode, $options, $show_image, $desc);
}
}