I'm not sure if this is a bug or a permissions issue.

When the subgroup module is installed, it adds two links to the Group Home Page "View" tab: "Tree" and "Members".

I have two users in the same group. Each has different roles. Neither is an admin user. One can see the "Tree" and "Members" link, the other can not.

Can someone tell me what determines whether a group member can see the "Tree" link? What function? What permissions?

Thanks.

Comments

swood’s picture

The problem should be a permissions issue. Check your roles to make sure that 'access content' has been granted. The menu items use the function 'node_access' with 'view' to determine who can see the menu item.

If you want to examine the code behind the menu call check out: http://api.drupal.org/api/head/function/node_access

The menu call is: 'access' => node_access('view', $node),

Where $node is the particular group being examined.

somebodysysop’s picture

Yes, you're right. Although it might have something to do with the theme also.

Both users had "access_content", and I wrote a php snippet that averified that node_access('view', $node) was true for both users.

I changed themes and the problem went away.

Thanks for the feedback.

somebodysysop’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)