I set Content is going to be saved
for Rules Event
.
And then the following code in Execute custom PHP code
for Rules condition
.
But it seems to return always TRUE no matter if the user account of node author is Active or Blocked.
return $author->status = 0;
How can I check the user status of node author in Rules condition? I would like the condition which returns TRUE when the the user status of node author is Blocked.