mirror of https://gitee.com/karson/fastadmin.git
commit
0126139be3
|
|
@ -348,10 +348,7 @@ class Auth extends \fast\Auth
|
||||||
$obj = Tree::instance()->init($childrenList, 'pid')->getTreeArray($v['pid']);
|
$obj = Tree::instance()->init($childrenList, 'pid')->getTreeArray($v['pid']);
|
||||||
$objList = array_merge($objList, Tree::instance()->getTreeList($obj));
|
$objList = array_merge($objList, Tree::instance()->getTreeList($obj));
|
||||||
}
|
}
|
||||||
$childrenGroupIds = [];
|
$childrenGroupIds = array_column($objList, 'id');
|
||||||
foreach ($objList as $k => $v) {
|
|
||||||
$childrenGroupIds[] = $v['id'];
|
|
||||||
}
|
|
||||||
if (!$withself) {
|
if (!$withself) {
|
||||||
$childrenGroupIds = array_diff($childrenGroupIds, $groupIds);
|
$childrenGroupIds = array_diff($childrenGroupIds, $groupIds);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue