From 33bfc4e18d51ba7cb459efa6c3d2902cc34d6514 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 2 Oct 2007 13:38:13 +0000 Subject: fixed typo. --- framework/Security/TAuthorizationRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Security') 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) -- cgit v1.2.3