Commit d097a4dc authored by Dries's avatar Dries
Browse files

- Patch #766382 by pebosi: column 'nid' is ambiguous when using node access modules.

parent a3445b50
......@@ -1277,10 +1277,10 @@ function menu_tree_check_access(&$tree, $node_links = array()) {
if ($node_links) {
$nids = array_keys($node_links);
$select = db_select('node');
$select->addField('node', 'nid');
$select = db_select('node', 'n');
$select->addField('n', 'nid');
$select->condition('status', 1);
$select->condition('nid', $nids, 'IN');
$select->condition('n.nid', $nids, 'IN');
$select->addTag('node_access');
$nids = $select->execute()->fetchCol();
foreach ($nids as $nid) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment