|
@@ -87,6 +87,7 @@ class AuthorityService
|
|
|
$item["child"] = [];
|
|
$item["child"] = [];
|
|
|
$authMap[$authority->id] = $item;
|
|
$authMap[$authority->id] = $item;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
foreach ($authorities as $authority){
|
|
foreach ($authorities as $authority){
|
|
|
if ($authority->parent_id){
|
|
if ($authority->parent_id){
|
|
|
if (isset($authMap[$authority->parent_id]))$authMap[$authority->parent_id]["child"][] = $authMap[$authority->id];
|
|
if (isset($authMap[$authority->parent_id]))$authMap[$authority->parent_id]["child"][] = $authMap[$authority->id];
|