Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 ...
Comments
Comment #1
hutch CreditAttribution: hutch commentedvery 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.
Comment #2
AlexisWilke CreditAttribution: AlexisWilke commentedThis is now 2 years old so I'm closing it. If you can co-maintain, let us know.