Forums / Developer / Container users?? / Comment48271
Joe Kepley
Monday 18 June 2007 8:03:01 pm
Your $usario variable contains a User object, which is a different from the user's content object.
$usario.contentobject.main_node_id is the correct variable to call for the main_node_id.
If this fetch isn't returning anything, there are a couple of things to check:
* Check the anonymous role (or whatever role you're using) to ensure that you can read the content objects
* Check the role assignment to ensure that it's not limited to say, media and content.