Index: restricted_content.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/restricted_content/restricted_content.module,v retrieving revision 1.9 diff -u -p -r1.9 restricted_content.module --- restricted_content.module 30 Apr 2009 15:56:19 -0000 1.9 +++ restricted_content.module 15 May 2009 12:12:27 -0000 @@ -90,7 +95,10 @@ function restricted_content_node_access( $account = $user; } $rids = db_result(db_query("SELECT rids FROM {restricted_content} WHERE nid = %d", $nid)); - return !$rids || array_intersect(unserialize($rids), array_keys($account->roles)); + if (!$rids) { + return TRUE; + } + return array_intersect(unserialize($rids), array_keys($account->roles)); } function restricted_content_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {