Hi!
I'm writing a module, and I've to check visibility of node, based on user's role.
I have to:
- query the db to take 100 nodes, for example
- check if the user that is on the site has the roles to view the node
- "print" a list of nodes that the user can view

Is there a function to check this?

Thanks,
Sergej

Comments

anupom.gogoi’s picture

sergiod’s picture

Thank's a lot!

nevets’s picture

If you use views to query the nodes it checks the access by default.

sergiod’s picture

I'm not using views now :)