Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.810 diff -u -p -r1.810 node.module --- modules/node/node.module 10 May 2007 19:57:13 -0000 1.810 +++ modules/node/node.module 10 May 2007 22:26:03 -0000 @@ -2719,6 +2719,15 @@ function node_access($op, $node) { return FALSE; } + // Check nodeapi 'access' hook. + // This happens before the module's own hook so that nodeapi can perform + // overrides. + $access = node_invoke_nodeapi($node, 'access', $op); + if (!empty($access) && is_array($access)) { + // If any values were true, return true; otherwise, return false. + return (bool) array_filter($access); + } + // Can't use node_invoke(), because the access hook takes the $op parameter // before the $node parameter. $module = node_get_types('module', $node);