Does anyone has a code to add a uid to an acl id of an individual node. Or, is acl ids only for modules? I'm really confused on how to achieve a per user per node access.

Comments

zeezhao’s picture

you need to do something like this:

....
$settings = array('ops' => array('view', 'update')); // or whatever permissions you want to grant
$account = user_load($uid_to_grant_premisions);
content_access_action_acl_grant_access($node, $account, $settings);
....