Commit b6a1ddcd by 冷斌

fix bug

parent 9e2b1421
......@@ -147,9 +147,6 @@ class UserGroupAction extends AdministratorAction
$except = [
17,21,22,
];
if (in_array($pid, $except)) {
return $list;
}
if ($result) {
foreach ($result as $key => $value) {
$list[$key]['checkboxValue'] = $value['id'];
......@@ -169,7 +166,9 @@ class UserGroupAction extends AdministratorAction
$list[$key]['spread'] = false;
$res = M('permission_node')->where('pid=' . $value['id'])->getField('id');
if (in_array($value['id'], $except)) {
continue;
}
if ($res) {
$child = $this->_UserGroupListMakeTree($ug_id, $value['id'], $level + 1) ?: [];
$child && $list[$key]['children'] = $child;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment