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

jwalling’s picture

I 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.

fago’s picture

hm, 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.

matt b’s picture

Have the same problem on 5.x. Setup a primary link to "node" and restrict to authenticated users only, can still be seen by anonymous.

fago’s picture

Title: strange problem, Menu per Role module » Menu per Role settings don't apply to items pointing to 'node'
Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Component: Miscellaneous » Code

I 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.

fago’s picture

Status: Active » Fixed

ha, 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.

astra’s picture

Title: Menu per Role settings don't apply to items pointing to 'node' » My problem is different from yours.
Version: 5.x-1.x-dev » 4.7.x-1.x-dev
Component: Code » Miscellaneous
Status: Fixed » Active

My 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?

fago’s picture

Status: Active » Fixed

because there might be another menu item pointing to the same path. Disable yours, find the other one and use this.

astra’s picture

Title: My problem is different from yours. » Menu per Role: path setting to link between drupal multisites
Status: Fixed » Closed (fixed)

I 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.