I noticed that all the nodes created, whether their "Only My Friends" option checked or not, makes the node private.

The hook_node_insert() implementation checks if the $node object has 'flag_friend_access' property.
The property exists whether the checkbox is checked or not, with a value of 1 or 0 respectively.

IMO, the check should be against the value.

Patch will follow.

p.s. This issue only occurs for new nodes. Editing nodes doesn't change the selected option for "Only My Friends" checkbox.

Comments

osman’s picture

osman’s picture

Status: Active » Needs review
socketwench’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me. Tests clean and confirmed with manual testing.

socketwench’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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