Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using Drupal 6.22 and menu per role 6.x-1.0. I checked an option to not show my "profile" and "real name" menus that appear under "user" menu for a particular role. However they still show up for the user role. Note I am also using the path access module to prevent access to the node but don't want users to see the menu and get a "no access message". I also have not given the role access in permissions but the menu still show. Assistance would be very much appreciated.
Comments
Comment #1
AlexisWilke CreditAttribution: AlexisWilke commentedI suppose you meant 6.x-1.10 of menu per role?
From what you are describing, I'm wondering whether the menu is a "natural" Drupal menu or some sort of built up menu. I don't recall the profile creating any menus though. It may be creating tabs though...
I never tried to apply Menu per Roles to tabs. I do not know how that would work.
Anyway, if what you are saying is true: i.e. that people cannot access those pages, then the menu should already be gone just because of that, that is, if it were a "natural" Drupal, then the system would detect the access problem and forget about the menu altogether.
This is why it feels like it feels wrong. I would ask the authors of those "menus" why they don't disappear when the destination is actually protected.
Thank you.
Alexis
Comment #2
aethynyc CreditAttribution: aethynyc commentedI also have a similar problem. I am using the simple menu and menu per role is not hiding any of the menus. It only "disables" them and you cannot click it, but users can still see it.
I have 3 menus: login / signup / navigation
The navigation menu is a parent and contains other submenus.
I would like for the navigation to show only to registered users, and the login / signup only to anonymous. However, all 3 menus show up all the time for everyone.
You can see/test my problem at my site here: http://musime.excalibur-nw.com
Drupal: 6.22
MpR: 6.x-1.10
Comment #3
AlexisWilke CreditAttribution: AlexisWilke commentedYeah... no one submitted a patch yet. I have something similar in Cute Menu where I do skip the menu altogether when empty. The problem here is that this is a combination of the multi-menu and making the parent menu non-clickable.
If the parents were clickable, then it would make sense to keep those empty entries. The multi-menu has no clue about the fact.
Thank you.
Alexis Wilke
Comment #4
aethynyc CreditAttribution: aethynyc commentedCan you?
Comment #5
AlexisWilke CreditAttribution: AlexisWilke commentedI don't have the time.
Thank you.
Alexis
Comment #6
GrimreaperHello,
Closing as the issue is about a deprecated version of Drupal.