I want to change per-node access settings programmatically with rules. With the current version this is apparently not working.

I try to find a way to do this in Rules with an "Execute custom PHP code" action. For this reason I nead to know how to access/modify them.

Can anyone tell me? Preferably I would like to know how a piece of code would look like e.g. to set the "Can view any content" parameter for a node.

Comments

acrazyanimal’s picture

Hey there, your issue may now be duplicated by #1464948: Dynamically setting content access permissions using rules. Please take a look and see if the patch helps you out as well. If so perhaps you can mark this issue 'closed (duplicate)' to help the maintainers out.

Goofy2k’s picture

Status: Active » Closed (fixed)

As this was a work-around, the issue can be regarded as closed.

Thanks acrazyanimal

Goofy2k’s picture

Issue summary: View changes

slight change: I want to know how to access/modify the settings. Not where they are stored :)