Programmatically adjusting permissions

chrism2671 - June 16, 2008 - 16:55
Project:Content Access
Version:5.x-1.4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Consider the following...

I have a CCK content type which includes a user select. When a user creates a node of this type, he/she has to pick a user from the list to which to grant access rights. When the node is submitted, I would like to run some code that grabbed that new $nid, pulled the user selected from the db, and then grant access.

Now I know this question probably doesn't relate directly to the Content Access module but I thought this would be a good place to ask.

Any ideas how this might be achieved?

Cheers,
Chris.

 
 

Drupal is a registered trademark of Dries Buytaert.