Closed (fixed)
Project:
Menu Per Role
Version:
4.7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2007 at 11:32 UTC
Updated:
13 Apr 2007 at 10:49 UTC
Installed this module I tried setting "Restrict access permission" for the menu items of primary links of my site. I restricted these primary links to authenticated user, some of the links work well that means only users who have login can access these links. But not all of them are right, a few primary links really dosn't work, anonymous users still can access these menu items. I feel very strange that all of menu items are primary links, why some work and others not?
Comments
Comment #1
jwalling commentedI have a problem that may be related. I restricted access to three roles (editor, moderator, & site architect) for one menu item.
The menu item is now not visible to user #1 (site owner), and is visible to anonymous users.
Comment #2
fagohm, that's strange as it does work fine for me. I must be able to reproduce this - otherwise I can't fix it. Perhaps you could drop reinstall the module and try to reproduce it.
Comment #3
matt bHave the same problem on 5.x. Setup a primary link to "node" and restrict to authenticated users only, can still be seen by anonymous.
Comment #4
fagoI just had a look at it and I can verify that it doesn't work to 'node'. However I can't see what's different with 'node'.
As a workaround a menu item pointing to or node/0 does work fine for me.
Comment #5
fagoha, I just found the difference:
There is already a menu item pointing to "node" - it's called content and it is per default disabled. Enable this and use this one for pointing to "node" and I verified it's working with it.
Comment #6
astra commentedMy problem is different from yours.
Installed this module I tried setting "Restrict access permission" for the menu items with primary links of my site. I restricted these primary links to authenticated user, some of the links work well that means only users who have login can access these links. But not all of them are right, a few primary links really dosn't work, anonymous users still can access these menu items. I feel very strange that all of primary links are the same access permission, why some of them work and others not?
Comment #7
fagobecause there might be another menu item pointing to the same path. Disable yours, find the other one and use this.
Comment #8
astra commentedI had a check and verified that no menu items points to the same path. I'm using Drupal-based multisites. For testing I find an instance below.
Say the multisites: www.main.com and subsite.main.com. For the menu item on the main site points to the subsite.
If setting menu path like http://subsite.main.com, the function of "Menu per Role" fails, any user can access this menu item. That's why I got problems before I submited this issue.
But now if setting menu path as http://www.subsite.main.com, it works without problem.