Forums / Developer / eZContentObjectTreeNode::canRead() always returns false

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

eZContentObjectTreeNode::canRead() always returns false

Author Message

Gabriel Ambuehl

Saturday 25 February 2006 2:54:52 am

I have the following code:

$node =& eZContentObjectTreeNode::fetch( $nodeID);
if (!$node->canRead())
{...}

somehow I always end up with not being able to read the node, even when logged in as admin! The node is fetched just fine, I can otherwise do whatever I like with it...

Visit http://triligon.org

Gabriel Ambuehl

Saturday 25 February 2006 3:03:21 am

Never mind I had a typo else where...

Visit http://triligon.org