Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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);
}
}