lgy преди 1 седмица
родител
ревизия
ed4e63b1b2
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      jcjyhr/extend/ba/Auth.php

+ 5 - 1
jcjyhr/extend/ba/Auth.php

@@ -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;