Index: gsitemap.module =================================================================== RCS file: /cvs/drupal/contributions/modules/gsitemap/gsitemap.module,v retrieving revision 1.46 diff -u -F^f -r1.46 gsitemap.module --- gsitemap.module 26 Mar 2006 05:51:23 -0000 1.46 +++ gsitemap.module 23 Apr 2006 00:04:45 -0000 @@ -331,6 +331,9 @@ function gsitemap_output() { $result = db_query(db_rewrite_sql("SELECT DISTINCT(n.nid), type, status, promote, changed, previously_changed, priority_override FROM {node} n LEFT JOIN {gsitemap} g ON n.nid=g.nid LEFT JOIN {url_alias} u ON src=CONCAT('node/',n.nid) WHERE n.status > 0 AND (g.priority_override >=0 OR g.priority_override IS NULL) AND n.type NOT IN (" . $excludes . ")",'n')); } while($node = db_fetch_object($result)) { + if (!node_access('view', $node, 0)) { + continiue; + } $pri = _gsitemap_calc_priority($node,$maxcomments->max_comments); print ''; if(isset($node->dst)) {