On my site we have group content related to events. For the most part we want the event to be public. But we only want logged-in users, whether a member of the group or not, to be able to see location and contact information.

To accomplish this I set group permissions to give non-members access to the node body, date, time, but not to location and contact. I created a new og role called "user" that gives the viewer access to the location and contact fields, in addition to all of the fields a non-member can see.

I then created a rule that fires when the node is viewed that assigns a logged-in user who is not a group member the "user" og role. According to the debug log, the rule is firing correctly. But the logged-in user cannot see the location and contact field data unless that user also has the administrator role for the site.

I have a similar problem with a link to join the group. I have created a panel page for the group. On it, if the viewer is not a group member but is logged in, I want that person to see a link to register for the group. So the pane has a visibility rule to make the pane appear appropriately. If the logged-in user is not an admin, the pane title appears, but not the link. If the logged-in user is an admin, the pane provides a link to subscribe without approval, even though the group permission to bypass approval is unchecked.

I cannot figure out where the problem is. It seems like some permissions setting is screwed up somewhere, but I cannot find it.

Comments

rsbecker created an issue.

rsbecker’s picture

I eventually managed to get access to everything I needed. But it is not entirely clear to me how.

It would be really nice if there was some documentation explaining roles and permissions, particularly what permissions must be given to the non-member role to make them accessible to other roles.