|
@@ -75,7 +75,11 @@ class Auth
|
|
|
{
|
|
|
foreach ($rules as $key => $rule) {
|
|
|
if (array_key_exists($rule['ID'], $this->children)) {
|
|
|
- $rules[$key]['children'] = $this->getChildren($this->children[$rule['ID']]);
|
|
|
+ $children = $this->children[$rule['ID']];
|
|
|
+ foreach ($children as $c=>$child) {
|
|
|
+ $children[strtolower($c)] = $child;
|
|
|
+ }
|
|
|
+ $rules[$key]['children'] = $children;
|
|
|
}
|
|
|
}
|
|
|
return $rules;
|