Hi all,
I have coded an external php script that uses drupal bootstrap to check data about current logged user.

What I would like to do is to check access to a node by passing the node id and the user id.

Is this possible?

Thanks a lot in advance!

Comments

Aibu’s picture

Ops, sorry, I just found the node_access function.

This should be used with this syntax if I am not wrong:

node_access('view',nodeid) and it will return true if access is possible. I hope this is correct!