I have one content type Jobs. These include a user reference field which is the contact.
I have another content type called Job Applications. The include a node reference field that links to Jobs.
How can I make so that public if someone attempts to read a URL for a job application, they won't be able to access that node unless they are contained in the user reference in the job node associated with that job application node.
I know that nodeaccess modules offers restrictions for content types containing user reference. I could add a contact user reference field in the job application content type BUT how do I keep it hidden (I think there is a module for hidding fields) AND more importantly how do I automate things so that when a job is selected (or used through node reference auto url) the hidden contact user reference field will automatically adjust based on that job node's user reference field.
Note: I don't want to restrict access by roles.
Update:
Job Contact (user reference)
Job Applications Job (node reference) Contact (user reference) <-------- I need this to be copied automatically from the job (that is referenced in the node reference) contact user reference