How to grant access to specific nodes to anonymous users? My site has a front page, an 'about us' and 'T&amp;C' pages which are all created as 'basic page' types, and I want to allow anonymous users to access them. I have tried this hook below, but it does not seem to work because I am always redirected to the login page (using LoginToboggan if that matters).

function mymodule_node_access($node, $op, $account) {
  $type = is_string($node) ? $node : $node-&gt;type;

  if ($type == 'basic page' &amp;&amp; $op == 'view') {
    return NODE_ACCESS_ALLOW;
  }
  else {
    return NODE_ACCESS_DENY;
  } 
  return NODE_ACCESS_IGNORE;
}
If you need content access to roles by content types, you can try using Content Access module.


  This module allows you to manage permissions for content types by role
  and author. It allows you to specifiy custom view, edit and delete
  permissions for each content type. Optionally you can enable per
  content access settings, so you can customize the access for each
  content node.