Hello,
I have created a custom node type called dgroup. In it I have added a CCK user reference field where we can select three user references. What i would like to do is be able to hook into things so that even though those 3 users don't have edit permissions on the node I can programmatically allow them to edit the page. Is the only way for me to do this is by writeing a custom module? I have the content access module installed which combined with ACL will let me select the users to have edit permissions, but i would like to avoid having enter the three user references on the main form when I create the node and then also go under the access tab and select those same three users. Does anyone know if I can hook into a drupal function from template.php that is called right before the node is shown? Then I could check if the node was of the dgroup type and if the userid matches one of the 3 entered. With that I could grant them permission (I think - although i'm not sure what API calls I use here). Any help would be greatly appreciated.