Anyone got any ideas?
I'm a tad stuck, trying to make an action run arbitrary php to execute upon publication of the most recent revision. What I'm trying to do is get a list of users to notify about the change, specifically the users who have permission to edit said node.
Now I've got the $object
returning my node id so I'm fine there, and I can get a list of users easy enough to cycle through them and check permissions. The hard bit is the permission check itself. Nothing I've tried seems to be able to provide permissions for 'publish' or 'update' on node x for user y.
I'm using the nodeaccess module to give individual users access to specific nodes btw, just for fun.