No matter what I do, I have a "Support ticketing system" in the top level of the Navigation menu.
1) The item will stay there for users who can submit tickets, but have no access to the Support ticket administration and hence no submenu items. Clicking on the main item just gives a "You do not have any administrative items." message.
2) The menu also stays even though I disable it in the menu system, which I find really strange.
3) Likewise moving the menu and its submenus has no implications at all. The menu still resides firmly on the top level which I find equally strange.
I need to get rid of this item leading nowhere. The users access the support system through their profile page and custom made views.
I have sought for a solution to this little problem in my Drupal setup, online here and elsewhere, but can't seem to find a way.
Any ideas to what I can do or what I'm doing wrong?
Martin
Comments
Comment #1
vertikal.dk commentedWell, I "solved" my own problem in the very no-no way of hacking the module.
The access control to the menu item is set with a general 'access administration pages' rather than 'administer support' as all other aspects of the support administration. This means that anybody with almost any level of admin access will see the item (since I can't hide it).
So changing line #148 in the $items['admin/support']-block in the support.module (in version 6.x-1.1) from
'access arguments' => array('access administration pages'),to
'access arguments' => array('administer support'),made it possible to control the menu item along with the rest of the support administration access.
I hate hacking modules, but this solved my problem.
Martin
Comment #2
JonoB commentedAfter changing the menu, did you:
i) Rebuild permissions
ii) Clear the drupal cache
iii) Clear your browser cache?
Comment #3
vertikal.dk commentedJonoB,
Yup. Cleared all caches - Drupal and elsewhere. To no avail.
The menu is visible because its permission level is 'access administration pages' while its submenus and admin functions are 'administer support'.
Since most of my editor's roles have the former but not the latter, they see the top menu but no submenus and have no access to any content within the support menu tree.
They just need to be able to submit and see tickets - not administer clients etc., so they don't need the menu.
Martin
Comment #4
jeremy commentedFix committed. I don't see any reason that this menu should use any other permission than 'administer support'.