diff options
author | xue <> | 2007-09-16 19:32:58 +0000 |
---|---|---|
committer | xue <> | 2007-09-16 19:32:58 +0000 |
commit | 3f5229142af88f0cc44644cc756d908138e5a790 (patch) | |
tree | 515f36e7c43cf8269802515040a20761cd4cf19e /framework/Security/TAuthManager.php | |
parent | 7f671b818300ccf529e8a8143cd108a56fc56eb1 (diff) |
Make auth rules more consistently handled.
Diffstat (limited to 'framework/Security/TAuthManager.php')
-rw-r--r-- | framework/Security/TAuthManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
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();
|