I have a question about organic group homepage posts:

- I created several groups on my website

- A user that is not a member of a group can standard see the group homepage + contents that is posted inside this group (true?)

How can I make the group posts invisible (or not accessible) for non-group members? So that non-group members can always see a group homepage but not the content that is posted inside this group?

Do I need extra modules to arrange this? og_vocab + taxonomy_access or how do other people arrange this

Comments

Grayside’s picture

The simplest technique:
Go to your modules page, and turn on Organic Groups Access Control. It is packaged with the OG module download. Configure as desired, it's very clear.

If you use other access control mechanisms, keep in mind that default behavior in Drupal "OR"s access, meaning anything that grants access to view a node will override anything that denies access.

miss-susan’s picture

The way I did it on my site was when creating content in the group, under the "Groups" fieldet, make sure the group who you want to see that content is checked. People who aren't a member of that group will then not be able to see that content.

maverick14’s picture

Thanks Grayside and miss-susan.

@Grayside:

I'm not sure if this is the answer to my question. I had the OG access controle module already enabled, but it seems to me this module covers the following things :

* Visibility of messages :

- Visible only within the targeted groups.
- Visible within the targeted groups and on other pages.
- Visibility chosen by author/editor using a checkbox on the posting form. Checkbox defaults to public.
- Visibility chosen by author/editor using a checkbox on the posting form. Checkbox defaults to private.

--> This is where you determine where a post should be visible (not accessable). So you say here: post this message in group a or group b or anywhere else.

(Determine how broadly available a given post should be when it is affiliated with a group. OG admins always see the checkbox for making a post public. Note that changing this setting has no effect on existing posts. Re-save those posts to acquire this new setting. If the setting you want is disabled here, check the settings under Private Groups setting below. You cannot set node visibility to always be public if private groups are set to always on and vice versa.)

* Private groups:

- New group home pages and default audience are always public.
- New group home pages and default audience are always private.
- Group administrator chooses whether her group homepage and audience are private or not. Defaults to private.
- Group administrator chooses whether her group homepage and audience are private or not. Defaults to public.

--> This is where you determine if a group homepage should be public or private to the audience

(A private group's group home page cannot be seen by non-members, and new posts created in the group will default to being private. This setting controls what private groups options can be used when creating a new group or editing an existing group. If you select one of the group administrator chooses options then it will be up to group admins whether their new groups are private or not, with the default you specify here.)

Note that the privacy of all content in the group is determined as each node is created or edited, according to the Visibility of Posts setting on this page. Note also that changing this setting only affects the default for new groups being created, not the privacy of any existing groups! To change those you must edit the groups and their individual content nodes directly. If the setting you want is disabled here, check Visibility of Posts above. You cannot choose to only have private groups if node visibility is set to be always public, and vice versa.

I tested this with several combinations of the selects above. How would I turn my settings if I want :

- That a member of a group should only see the posts of this group (private or public group)
- That a non-member of a group should only see the homepage of the group

@miss-susan:

I'm not sure what you mean, but what are your settings for og access control?

Thanks in advance, your help is appreciated!

golchi’s picture

Hi Maverick14,
I created a group that is "Moderated" and i check the "List in groups directory" (with this option the group can not be private). And it's working: the user before I make him member of the group can only see the description; and once he is member he can see the posts of the group.

Hope this will hep you :-)

maverick14’s picture

Hello Golchi,

Thanks for your reaction

"moderated" only applies on how users can become a member of this group. "List in groups directory" only applies to if the group name is listed or not listed in the group directory page. This should not have effect or on what a user can see on the homepage of a group.

What are your settings on the OG access controle, like listed above?

Thanks. Greetz.

maverick14’s picture

Ideas anyone ?

Grayside’s picture

To clarify, what you want is a way to make existing group posts Private? That was unclear to me.

The visibility of a post being public or private represents the permission to view the post if you are in or not in the group. If you want only group members to see posts, ever, use "Visible only within the targeted groups." If you want it toggle-able on a case by case basis, default it to Private. To grandfather in existing posts to make use of the OG Access module, you are probably looking for a bulk operations mechanism that can switch this public/private flag for you on many nodes at once. I don't know about anything in OG/OG Access that provides support for bulk operations.

However, the Views Bulk Operations module might save you- I suggest you install it, create a view, change the style to Bulk Operations, and look through the check list of available actions for something that sounds like "Make Group Post Public/Private". Be sure the OG Access module is already installed when you do this, or it definitely will not be in that list!

If such an option is not available there, you are looking at 1) Going about this the hard way, one post at a time, 2) Writing SQL and modifying your database directly after observing what the OG Access module does, 3) Writing a module/patch that others in this situation will bless you for, 4) Waiting for this to drift up someone's priority queue.

MeisterFlocke’s picture

Hi Maverick,

I had the same problem. Now I disabled the Content Access Module and everything is fine. I assume it overrode the og permission settings, as grayside suggested. Maybe there are also other access modules which interfere with OG access.

Greets, Meister Flocke

maverick14’s picture

Status: Active » Closed (fixed)

Hello Grayside and Meister Flocke , thanks!!

"If you want only group members to see posts, ever, use "Visible only within the targeted groups." did it.

And also: Taxonomy Access Control was messing up everything.

MickC’s picture

How do you set defaults according to group privacy settings?

e.g. Private groups set post default to private and public groups set post default to public.

Seems to me OG access only allows one setting for all groups regardless of the privacy of the group.
I have a mix of private and public groups and it will create too much admin for group admins if I set to 1 or the other default.

Anyone?

Thanks