I might be wrong, but I believe this module provides for a Rules action, which would help me tremendously.

But when I go to make the rule, I don't have and actions relating to Private.

Am I missing something?

CommentFileSizeAuthor
#3 private_rules.patch1.16 KBmcjim

Comments

AldenC’s picture

Disregard...sorry...see that they are set up in Actions not Rules.

Thanks!

AldenC’s picture

In case anyone else is interested in using Private with Rules, an easy work-around here is to have your rule run PHP code and use the command
actions_do('private_set_private_action',$node);
or
actions_do('private_set_puplic_action',$node);
to make a node private or public.

It works quite nicely!

mcjim’s picture

Title: Make Node Private doesn't show up in action list. » Make Node Private doesn't show up in action list for Rules
Status: Active » Needs review
StatusFileSize
new1.16 KB

I recently needed Rules integration for Private, so wrote the actions needed.
Patch attached, testing appreciated! :-)

adamps’s picture

Title: Make Node Private doesn't show up in action list for Rules » Add rules integration
Category: Bug report » Feature request
Status: Needs review » Needs work

Sorry patch would need reworking to apply on 2.x branch.