The Forward module 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

seanr’s picture

Please try this again. I just made a major update to the module, essentially re-porting the entire thing from the DRUPAL-5 branch. You can checkout either HEAD or DRUPAL-6--1.

helvetica’s picture

I just checked out HEAD, and I'm having the same problem.

seanr’s picture

Title: HEAD doesn't work for 6.2 » menu access parameter should be access callback
Status: Active » Fixed

Try HEAD or DRUPAL-6--1 again. Also fixed a couple of notices.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.