1 Feb 07:24
access session.user's parent
Julian Tree <julian.tree <at> gmail.com>
2006-02-01 06:24:28 GMT
2006-02-01 06:24:28 GMT
I'm doing this a bit unusual thing. Here are the hierarchy of the tables company (parent of )-> user company (parent of )-> jobs When users are logged in they are able to see all jobs that belongs the company they belong to. The user can also edit their parent company's information. After login, I have a session.user obj indicating the current logged user. Now, I know how to access the jobs from session.user, but I don't know how to access the company object from user. How can I access the company of session.user? I tried session.user._parent. It didn't work. Anyone has any suggestion, I would greatly appricated. Tree
RSS Feed