|
@@ -73,14 +73,11 @@ class Auth
|
|
|
*/
|
|
|
private function getChildren(array $rules): array
|
|
|
{
|
|
|
- var_dump($this->children);
|
|
|
foreach ($rules as $key => $rule) {
|
|
|
- var_dump($rule['ID']);
|
|
|
if (array_key_exists($rule['ID'], $this->children)) {
|
|
|
$rules[$key]['children'] = $this->getChildren($this->children[$rule['ID']]);
|
|
|
}
|
|
|
}
|
|
|
- die;
|
|
|
return $rules;
|
|
|
}
|
|
|
|