Menu Item for Anonymous Users appears on Authenticated Users menu as well.

majortom - June 6, 2007 - 18:04
Project:Menu per Role
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have a menu item that is set for anonymous users only. Unfortunately, it also appears on the menus of authenticated users. What should I be doing to prevent this?

#1

fago - June 7, 2007 - 12:24
Status:active» fixed

make sure that there is no other menu item that points to the same path. If the second one can't be deleted, delete your custom created one and use the other one.

pls reopen, if this wasn't the case.

#2

majortom - June 7, 2007 - 15:55
Status:fixed» active

There is no current menu item that points to this node. Here are the steps that I took to get to this point.

I first created two menu items with the same name, but that had different targets, one was supposed to be visible only to authenticated users, the other to anonymous. Set their permissions appropriately. Unfortunately, both appeared for all users.

Next, I changed one's name. Still no luck.

Then, I deleted both menu items and created a new one with only anonymous permission. Still appears for both roles.

Does that help at all? :-)

P.S. I am running 31 May release.

#3

majortom - June 7, 2007 - 16:07

As an aside, it would be great if what I was trying to do in the first place was possible: have duplicate menu items that point to different places based on role.

So for example:

Go to your Blog ---> http://example.com/register (for anonymous users)

Go to your Blog ---> http://example.com/myBlog (for authenticated users).

#4

fago - June 9, 2007 - 13:49

I've just tested it and it works like you desire it.
Perhaps try to remove your two items and start with two fresh ones.

Have you applied the patch and the module working else?

 
 

Drupal is a registered trademark of Dries Buytaert.