I'm marking this as a bug report but I understand it may be a new feature request or potentially just a support request.
I have one node type Group, set up as an OG Group, with Group Visibility field.
I have another node type Post, set up as an OG Group Content, with a Group Audience being in Group, and Group Content Visibility set to use Default from group.
Steps to reproduce:
1. Create a group node, marking it private.
2. Create a post node, leaving visibility set as Default from group. It will be private.
3. Change the group visibility to Public. The post node is still private.
This goes the other way as well--posting to a public group and then making the group private leaves the posts public.
If the group content is re-saved after the group's group visibility changes, it will update to the group's new visibility.
I think it would be much more intuitive for the group content visibility to be updated as the group visibility changes. Is there currently any setting, or any expected way to do this beyond a custom module implementing hook_node_update()?
Comments
Comment #1
shushu CreditAttribution: shushu commentedWhile the behavior you describe is known, there is no simple solution for it that will be able to cover all of the different OG use cases (some with big sites and large amount of nodes in each group).
Patches are always welcome.
Specifically for your use case, if it is a small site, you can create several solutions, among them creating some rules that will change content permissions once group permission is changed.
Comment #2
dtarc CreditAttribution: dtarc commentedThat is understandable. I see how it would be difficult to create a solution that will apply everywhere.
Here's what we ended up using to achieve this functionality on our site:
For our purposes, we really only needed the private/public toggling to apply to node-based group content. This did the trick. For us it makes a lot more sense to do this with hooks than with rules.
I'd be willing to turn this into a patch if it could be used in og_access...I suppose this could be turned on/off by a setting, so that people not looking for this functionality wouldn't get it.
Comment #3
jastraat CreditAttribution: jastraat commentedSadly these would only work if the group was a node. Groups can also be other types of entities though.