Project:Restrict Login or Role Access by IP Address
Version:5.x-1.0-beta4
Component:Code
Category:bug report
Priority:normal
Assigned:ymmatt
Status:closed (fixed)

Issue Summary

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

#1

Assigned to:Anonymous» 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.

#2

Status:active» needs work

#3

Status:needs work» closed (fixed)

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

nobody click here