Remove Non-viewable Menu Items

ngroot - May 30, 2007 - 21:31

Drupal does not check to ensure that the user has access to view a node referenced by a custom menu item before it displays the menu item. This module searches through the {menu} table, looks for nodes, and checks to see which nodes the user is unable to view. Those nodes are added to the the menu tree with the access attribute set to FALSE, ensuring they do not appear in menus.

This was motivated by my use of the category_menu and cac_lite modules on a site I was building. Menu items which were not accessible to users in certain roles would appear even though they did not have access to them, creating usability and (minor) security problems.

Releases

Official releasesDateSizeLinksStatus
5.x-1.02007-May-318.87 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
5.x-1.x-dev2008-Dec-088.88 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.