Menu item which should be hidden displays when weight is 10.

ron_s - April 15, 2008 - 13:26
Project:Menu per Role
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I had two menu items which would show up in every role no matter what I did, even for anonymous users. I examined the two closely and the only thing I could see they had in common was both had a weight of 10. I changed the weights from 10 to 9, and they disappeared! I'm not sure if maybe somewhere in the code it's looping through up to 9, but not including 10 ...

#1

hutch - April 16, 2008 - 12:00

very odd. menu_per_role does not look at weights at all , it just maps menu ids to role ids and alters the form so that permissions can be set. Sometimes the menu system does play up, emptying the cache_menu table can help.

 
 

Drupal is a registered trademark of Dries Buytaert.