I installed the Forward module, to email a page to a friend. It only seems to be accessible to users who are logged in. I went to the permissions page, and made sure anonymous users had "access forward" permission. But I get permission denied when trying to use it as an anonymous user.
I looked in the code, in the menu hook function, and saw this:
$items['forward/%node'] = array(
'title' => 'Forward this page',
'page callback' => 'drupal_get_form',
'page arguments' => array('forward_form', 1),
'access' => 'forward_access',
'access arguments' => array(1),
'type' => MENU_CALLBACK
);
'forward_access' looked a little different then what I'm used to so I tried changing it to:
'access' => array('access forward'),
but that didn't work either.
Any suggestions?
Comments
correct me if I'm wrong, but
correct me if I'm wrong, but I don't see a D6 version of http://drupal.org/project/forward so what exactly did you install?
EDIT: I went to the releases, and there was no note there about HEAD being compatible with D6 (its only on the project page). The permissions callback changed from 6.1 to 6.2... which version of D6 are you using?
Right at the top
Right at the top of:
http://drupal.org/project/forward
it says:
Update: HEAD is now compatible with 6.x
Yes I know, the second part
Yes I know, the second part of my post says I saw that after posting but that there were some changes in D6 from 6.1 to 6.2. If your using d6.2 and the module hasn't been updated for d6.2, perhaps that has something to do with your problem. In any case, your best bet is to inquire in the issues queue for the module.