Index: modules/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node.module,v retrieving revision 1.446 diff -u -F^f -r1.446 node.module --- modules/node.module 19 Jan 2005 01:51:58 -0000 1.446 +++ modules/node.module 22 Jan 2005 23:10:20 -0000 @@ -1725,7 +1725,7 @@ function node_access($op, $node = NULL, * An SQL join clause. */ function node_access_join_sql($node_alias = 'n', $node_access_alias = 'na') { - if (module_implements('access_grants') == array('node') || user_access('administer nodes')) { + if (empty(module_implements('node_grants')) || user_access('administer nodes')) { return ''; } @@ -1746,7 +1746,7 @@ function node_access_join_sql($node_alia * An SQL where clause. */ function node_access_where_sql($op = 'view', $node_access_alias = 'na', $uid = NULL) { - if (module_implements('access_grants') == array('node') || user_access('administer nodes')) { + if (empty(module_implements('node_grants')) || user_access('administer nodes')) { // This number is being used in a SQL query as a boolean. // It is "'1'" instead of "1" for database compatibility, as both // PostgreSQL and MySQL treat it as boolean in this case.