summaryrefslogtreecommitdiff
path: root/framework/Security
diff options
context:
space:
mode:
authorxue <>2005-11-16 22:32:52 +0000
committerxue <>2005-11-16 22:32:52 +0000
commit6c1b05deafd9940da5d473800032558df90b118e (patch)
tree3435de08a595fab3ca71ed41f3a88cc9ab6e2995 /framework/Security
parent65acec4f65ddefcb3e9f9762d958be0539f3f71a (diff)
Key modules are now using registered to application rather than using reserved module names.
Diffstat (limited to 'framework/Security')
-rw-r--r--framework/Security/TAuthManager.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/framework/Security/TAuthManager.php b/framework/Security/TAuthManager.php
index c12ee245..57288c0f 100644
--- a/framework/Security/TAuthManager.php
+++ b/framework/Security/TAuthManager.php
@@ -3,10 +3,6 @@
class TAuthManager extends TComponent implements IModule
{
const RETURN_URL_VAR='ReturnUrl';
- /**
- * @var TAuthorizationRuleCollection list of authorization rules
- */
- private $_authRules=null;
private $_guest='Guest';
private $_initialized=false;
private $_application;
@@ -137,7 +133,7 @@ class TAuthManager extends TComponent implements IModule
{
if($this->hasEventHandler('Authenticate'))
$this->raiseEvent('Authorize',$this,$this->_application);
- if($this->_authRules!==null && !$this->_authRules->isUserAllowed($this->_application->getUser(),$this->_application->getRequest()->getRequestType()))
+ if(!$this->_application->getAuthorizationRules()->isUserAllowed($this->_application->getUser(),$this->_application->getRequest()->getRequestType()))
{
$this->_application->getResponse()->setStatusCode(401);
$this->_application->completeRequest();
@@ -190,16 +186,6 @@ class TAuthManager extends TComponent implements IModule
$session->destroy();
}
}
- /**
- * @return TAuthorizationRuleCollection list of authorization rules that may be applied
- */
-
- public function getAuthorizationRules()
- {
- if($this->_authRules===null)
- $this->_authRules=new TAuthorizationRuleCollection;
- return $this->_authRules;
- }
}
?> \ No newline at end of file