Closed (fixed)
Project:
Subgroups for Organic groups
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2007 at 18:43 UTC
Updated:
12 Apr 2007 at 02:47 UTC
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
Comment #1
swood commentedThe 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.
Comment #2
somebodysysop commentedYes, 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.
Comment #3
somebodysysop commentedComment #4
(not verified) commented