lgy 8 giờ trước cách đây
mục cha
commit
f2fc12130a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      jcjyhr/extend/ba/Auth.php

+ 2 - 2
jcjyhr/extend/ba/Auth.php

@@ -74,8 +74,8 @@ class Auth
     private function getChildren(array $rules): array
     {
         foreach ($rules as $key => $rule) {
-            if (array_key_exists($rule['id'], $this->children)) {
-                $rules[$key]['children'] = $this->getChildren($this->children[$rule['id']]);
+            if (array_key_exists($rule['ID'], $this->children)) {
+                $rules[$key]['children'] = $this->getChildren($this->children[$rule['ID']]);
             }
         }
         return $rules;