Use db_rewrite_sql()
kiamlaluno - December 30, 2008 - 22:33
| Project: | Kaltura |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
When a module makes an SQL query to the node, and taxonomy core tables, it should pass the query string to db_rewrite_sql() which allows other modules (including the core node.module module) to filter the list of nodes returned.
In the case of node.module, it filters out the nodes to which the current user has no access.

#1
See the Drupal documentation for more details.
#2
fixed in 6.x-1.4 and 5.x-1.3
#3
Automatically closed -- issue fixed for 2 weeks with no activity.