summaryrefslogtreecommitdiff
path: root/framework/Security
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Security')
-rw-r--r--framework/Security/TUserManager.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/Security/TUserManager.php b/framework/Security/TUserManager.php
index a6d3b8de..8faa7f96 100644
--- a/framework/Security/TUserManager.php
+++ b/framework/Security/TUserManager.php
@@ -254,7 +254,15 @@ class TUserManager extends TModule
private function loadUserData($xmlNode)
{
foreach($xmlNode->getElementsByTagName('user') as $node)
- $this->_users[strtolower($node->getAttribute('name'))]=$node->getAttribute('password');
+ {
+ $name=strtolower($node->getAttribute('name'));
+ $this->_users[$name]=$node->getAttribute('password');
+ if(($roles=trim($node->getAttribute('roles')))!=='')
+ {
+ foreach(explode(',',$roles) as $role)
+ $this->_roles[$name][]=$role;
+ }
+ }
foreach($xmlNode->getElementsByTagName('role') as $node)
{
foreach(explode(',',$node->getAttribute('users')) as $user)