Index: modules/node/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.module,v
retrieving revision 1.717
diff -u -r1.717 node.module
--- modules/node/node.module	26 Oct 2006 05:31:14 -0000	1.717
+++ modules/node/node.module	31 Oct 2006 08:14:33 -0000
@@ -2571,6 +2571,8 @@
  *   TRUE if the operation may be performed.
  */
 function node_access($op, $node = NULL, $uid = NULL) {
+  global $user;
+
   // Convert the node to an object if necessary:
   if ($op != 'create') {
     $node = (object)$node;
@@ -2599,6 +2601,10 @@
     return $access;
   }
 
+  if (is_null($uid)) {
+    $uid = $user->uid;
+  }
+
   // If the module did not override the access rights, use those set in the
   // node_access table.
   if ($op != 'create' && $node->nid && $node->status) {
@@ -2618,6 +2624,12 @@
     $result = db_query($sql, $node->nid);
     return (db_result($result));
   }
+
+  // Let authors view their own nodes.
+  if ($op == 'view' && $uid == $node->uid && $uid != 0) {
+    return TRUE;
+  }
+
   return FALSE;
 }
 
