I like the new default privacy settings on node types (disabled, enabled-private by default, enabled-public by default). However, these settings aren't being saved, and thus aren't applied when editing nodes.

I've attached a patch against 6.x-1.0 that should fix this.

Since this is also used as an example node access module, I edited the comments in private_node_alter to better explain what's going on.

Comments

jponch’s picture

+1

Worked great for me :) Thanks!

greenmachine’s picture

This patch worked for me as well. If anyone else hits this problem, make sure to fix the typo on the constant name on line 13 as well.

q0rban’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Needs review » Fixed

Looks like this is fixed.

Status: Fixed » Closed (fixed)

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