I have a menu and would like to hide a specific item if the currently authenticated users doesn't have the "editor" role, which i created.
Since this is such a small thing, i would like to achieve that without the use of a 3rd party module.
update::
This is not about security, I just want to hide the item regardless of the linked node's permission. In my specific case I'm even linking to a public node and just want to hide the menu item as long as the user hasn't the "editor" role.
hook_node_access()
). Menu links will automatically fall in line using that method