Spaces OG has special functionality in spaces_og_nodeapi() that detects when the space preset changes, and makes sure all nodes in the space follow the group privacy of the preset.

This is fine behavior for public → private settings, OG Privacy prioritizes anything making a node more private.

For private → public this results in making nodes public without regarding for OG Privacy policies.

OG Privacy needs to duplicate the Spaces preset change-check and replace the og_privacy setting of each node based on active policies.

Doing so requires a full node_load() on each node, making it a bit expensive. This should probably use Batch API.

Comments

Grayside’s picture

Waiting on #901670: Signal Privacy state change in spaces_og_nodeapi() so this can be approached somewhat sanely. (Well, somewhat less insanely.)

Grayside’s picture

Status: Active » Needs work
StatusFileSize
new4.48 KB

Here's a first stab, doesn't explode the system, but also doesn't seem to do anything.

Grayside’s picture

Status: Needs work » Fixed
StatusFileSize
new8.97 KB

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.