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