I have my site set up so that anonymous users can see friend lists on user profiles. The same permission that grants this also causes them to be able to see the menu item "All" in the navigation menu. If they click that item, they get a Page Not Found error. I fixed this problem by changing the line that grants access to the menu item "All" as below:

FROM this:
'path' => "relationships/list",
'title' => t('All'),
'access' => $view_access,

TO this:
'path' => "relationships/list",
'title' => t('All'),
'access' => ($id && user_access('maintain relationships')),

Comments

alex.k’s picture

Assigned: Unassigned » alex.k
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.