? 6x-modr8-1.patch ? 6x-modr8-198584-21.patch ? add_nid-230133-6x.patch ? call-time-pbr-242908.patch ? delete-access-modr8-1.patch ? hide-unpublished-230270-2.patch ? invalid-rewrite-252419-2.patch ? modr8_9.patch ? modr8_add_nid_to_replacements.patch ? notes-176088-7.patch ? notes-176088-8-6x.patch Index: modr8.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/modr8/modr8.module,v retrieving revision 1.20 diff -u -p -r1.20 modr8.module --- modr8.module 9 Apr 2008 02:15:39 -0000 1.20 +++ modr8.module 30 Apr 2008 02:11:36 -0000 @@ -174,14 +174,14 @@ function modr8_db_rewrite_sql($query, $p if (!$access) { global $user; $return = array(); - if ($primary_table != 'n') { + if (($primary_table != 'n') && ($primary_table != '{node}')) { $return['join'] = "LEFT JOIN {node} n ON $primary_table.nid = n.nid"; } if ($user->uid == 0) { - $return['where'] = "(n.moderate != 1)"; + $return['where'] = "($primary_table.moderate != 1)"; } else { - $return['where'] = "(n.moderate != 1 OR n.uid = ". (int)$user->uid .")"; + $return['where'] = "($primary_table.moderate != 1 OR $primary_table.uid = ". (int)$user->uid .")"; } return $return; }