I'm trying to do a little statistics on nodes and display it on a block. I utilized
menu_get_object('node', 1, $path) to get the node object of those nodes with the properties that I want.
So my problem is, in admin accounts, this works fine and well. however, in a normal user account,
menu_get_object('node', 1, $path) returns null for any node that the normal user has no access to. is there any way to circumvent this?
So far I've tried using
node_load(), and I also tried putting all the data analysis code inside a
hook_cron(). Neither worked.
db_query() is not an easy task either, as I'm trying to obtain the node's parent node,and that parent's node parent node. That data is serialized. If it matters, I'm using Open Atrium, and I'm trying to obtain the topmost Space for a particular node.