By noizyboy on
Drupal 6.x, with admin_menu v 1.5.2.1
I've got a user role with restricted privileges. When logged in with that user role, I end up with a couple of top-level items, namely the Content Management and Site Building menus which are superfluous -- when clicked on, you just get to a "You do not have any administrative items" page.
I've been mucking around with hook_menu_links_alter, hook_menu_alter and hook_admin_menu, but the obvious way to remove these menu items for a specific user role is eluding me.
Any suggestions?
Comments
_
afaik, they should not appear if the user doesn't have sufficient permissions. I would suggest creating an issue in the admin_menu issue queue (be sure to check for an existing issue first).
thanks, will investigate a
thanks, will investigate a bit more and lodge an issue if that turns out to be the case.
there's a related issue, however...
Should I want to remove, or move admin_menu items based on the user's role, how do I do this?
See also: #514898: "You do
See also: #514898: "You do not have any administrative items." - Callback: system_main_admin_page() doesn't exist!