Index: modules/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node.module,v
retrieving revision 1.591
diff -u -u -F^f -r1.591 node.module
--- modules/node.module	24 Jan 2006 08:26:21 -0000	1.591
+++ modules/node.module	25 Jan 2006 20:50:42 -0000
@@ -2304,7 +2304,18 @@ function node_access_grants($op, $uid = 
     $user_object = $user;
   }
 
-  return array_merge(array('all' => array(0)), module_invoke_all('node_grants', $user_object, $op));
+  $grants = module_invoke_all('node_grants', $user_object, $op);
+  if (user_access('access content')) {
+	$grants = array_merge(array('all' => array(0)), $grants);
+  } 
+  else {
+	// user does not have 'access content' privilege
+	if (!count($grants)) {
+	  // no row in node_access for realm='all' gid=-1, so this grants nothing
+	  $grants = array('all' => array(-1));
+	}
+  }
+  return $grants;
 }
 
 /**
