Hi,

I just want to show/hide an item menu (in navigation) for certain role.

by code it's "relativly" easy to create a menu and adjust 'access arguments' => array('xxx), to determine if a user with a role can access this menu item.
BUT,
is it possible to achieve something similar for a menu created by a user (by the menu interface) (menu.module)
I have seen http://drupal.org/project/menu_per_role but this is only for Drupal 5, and need a core patch ...

Regards

Comments

nico059’s picture

an example:

I have created a menu item (by the drupal interface) to:
http://www.example.com/taxonomy/term/23/all
(I try it with a custom view too)

I setup Taxonomy access lite to remove the view permission to this term. It works ok and I have nothing displayed in this page.

But I would like to "hide" this menu item from my navigation menu (idealy by the drupal interface)

When I add a menu item to a node, and remove the right to view (by acces content or privacy by role module) the menu item is not displayed

Oddible-1’s picture

Looking for the same thing. There is a module called Menu Per Role but it breaks several things on my 5.x installation so I cannot use it in its current state. Seems surprising to me that this is the only module out there that can perform this and it isn't being maintained to be functional (check out the bug list), especially since this feature was felt to be so important as to make it into the core in 6.x.