Pre Merge pull request !501 from 御宅男(YznCMS官方)/1.x-dev

pull/501/MERGE
御宅男(YznCMS官方) 2025-07-18 06:44:07 +00:00 committed by Gitee
commit 4c5d2a0de1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 4 deletions

View File

@ -348,10 +348,7 @@ class Auth extends \fast\Auth
$obj = Tree::instance()->init($childrenList, 'pid')->getTreeArray($v['pid']);
$objList = array_merge($objList, Tree::instance()->getTreeList($obj));
}
$childrenGroupIds = [];
foreach ($objList as $k => $v) {
$childrenGroupIds[] = $v['id'];
}
$childrenGroupIds = array_column($objList, 'id');
if (!$withself) {
$childrenGroupIds = array_diff($childrenGroupIds, $groupIds);
}