From 3f5229142af88f0cc44644cc756d908138e5a790 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 16 Sep 2007 19:32:58 +0000 Subject: Make auth rules more consistently handled. --- framework/Security/TAuthManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Security/TAuthManager.php') diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php index cbad51dc..fcbb64d2 100644 --- a/framework/Security/TAuthManager.php +++ b/framework/Security/TAuthManager.php @@ -251,7 +251,7 @@ class TAuthManager extends TModule $application=$this->getApplication(); if($this->hasEventHandler('OnAuthorize')) $this->raiseEvent('OnAuthorize',$this,$application); - if(!$application->getAuthorizationRules()->isUserAllowed($application->getUser(),$application->getRequest()->getRequestType())) + if(!$application->getAuthorizationRules()->isUserAllowed($application->getUser(),$application->getRequest()->getRequestType(),$application->getRequest()->getUserHostAddress())) { $application->getResponse()->setStatusCode(401); $application->completeRequest(); -- cgit v1.2.3