Once I log in as an authenticated user (no admin privelages) I get this url http://www.anzses.org/index.php?q=node/2&restricted

and the user is logged and and can view member pages

but it doesnt deny me, no matter what random IP I put in? I have set the deafult denied page in the admin section also.

Comments

ymmatt’s picture

Assigned: Unassigned » ymmatt

This has to do with whether or not your site uses clean url's.

If the user is not allowed to login they are re-directed using the drupal_goto function:

drupal_goto("/", "restricted");

The url is quite different depending on whether or not your site uses clean urls or not.

In the nodeapi hook this statement:

 $mypath = explode("?", request_uri());

needs to be dependant on what type of system is used. If it is clean url's it needs to use the one above, if it isn't clean urls then it needs to be:

 $mypath = explode("&", request_uri());

Notice the ampersand.

I will get this done soon and have it in the next release. I'll leave this active until then.

ymmatt’s picture

Status: Active » Needs work
james.wilson’s picture

Status: Needs work » Closed (fixed)

Should no longer be an issue in the 6.x branch. 5.x is no longer supported.