To control access to group content it is necessary to add another field to a group content type. From the Organic Group configuration page, click on OG field settings.
This next page requires some careful study. If you have already added a field for Group roles and permissions or Group visibility this should be easier to understand. The goal is to add a field to the group content type that will allow the control of access to group content. First, select the group content type from the select list labelled Bundles. Next select the Group content visibility option in the Fields list. Third, click the Add field button. Lastly, the new field will appear in the table of group content-related fields associated with the group content type.
To confirm this field has been added, navigate to the Manage Fields tab on the content type (e.g. /admin/structure/types/manage/group/fields
). There you will see the new field with the maching name of group_content_access.
Next, go to a group content page and click on the Edit tab. You will see the new field in the edit content form. Select Private - accessible only to group members and save the group.
Notice the group content page now indicates this new setting.
Now, if you view the Group content page as an anonymous user (or a user who is not a member of the group or who does not have administrator permissions) you will get an Access Denied message.