Hi,
I'm trying to make a menu item not show to anonymous users. I've installed the menu access and menu item access modules and modified the permissions.
I then go into the specific menu item and modify it and untick the 'View' box for anonymous users. This doesn't appear to have any effect. I've tried modifying in permissions 'Access Menus' and 'Access Menu Items' for anonymous users, but again this doesn't appear to change anything.
I have got content access and forum access enabled too.
I've tried modifying the weighting too.
Any help greatly appreciated.
Thanks.
Comments
Comment #1
emptyvoid commentedQuick note:
In order for menu access to work you must use the menu access menu blocks. This is located in the Blocks management interface you will notice blocks prefixed with Menu Access - "menu name". If you have a custom module or created a custom theme you will need to modify the theme menu functions to use the same menu access security functions as defined in the block code for menu_access.module.
This tactic ensured I wouldn't have to patch the Drupal core to enforce security for menus.
Comment #2
emptyvoid commentedComment #3
bratsun commentedWell, the problem is that there're only 3 blocks with Menu access prefixes and it means that no custom menus are taken into account. In this case the module is only partly useful (when Primary or Secondary links access being granted).
Comment #4
emptyvoid commentedCheck out this post that has a patch to the code to support any menu.
http://drupal.org/node/718378
I am having a hell of a time trying to get my CVS/Git account reactivated so I can commit updates.
Comment #5
emptyvoid commentedpatch applied to the dev branch, download the test it out.
Comment #6
emptyvoid commentedComment #7
emptyvoid commented