summaryrefslogtreecommitdiff
path: root/framework/Security
diff options
context:
space:
mode:
authorxue <>2007-10-02 13:38:13 +0000
committerxue <>2007-10-02 13:38:13 +0000
commit33bfc4e18d51ba7cb459efa6c3d2902cc34d6514 (patch)
tree0c0e689b363506f378a5933b00f40de2a5c9a564 /framework/Security
parentc07bcf6044e553deca6282cd9f4c5c85e119aa05 (diff)
fixed typo.
Diffstat (limited to 'framework/Security')
-rw-r--r--framework/Security/TAuthorizationRule.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Security/TAuthorizationRule.php b/framework/Security/TAuthorizationRule.php
index bdc0e902..d16ad93b 100644
--- a/framework/Security/TAuthorizationRule.php
+++ b/framework/Security/TAuthorizationRule.php
@@ -223,7 +223,7 @@ class TAuthorizationRule extends TComponent
private function isUserMatched($user)
{
- return ($this->_everyone || ($this->_guest && $user->getIsGuest()) || ($this->_authenticated && !$user->getIsGuest()));
+ return ($this->_everyone || ($this->_guest && $user->getIsGuest()) || ($this->_authenticated && !$user->getIsGuest()) || in_array(strtolower($user->getName()),$this->_users));
}
private function isRoleMatched($user)