Commit 6b8a8c52 by 冷斌

fix bug

parent b6a1ddcd
......@@ -149,6 +149,9 @@ class UserGroupAction extends AdministratorAction
];
if ($result) {
foreach ($result as $key => $value) {
if (in_array($value['id'], $except)) {
continue;
}
$list[$key]['checkboxValue'] = $value['id'];
if ($value['pid'] == 0) {
$list[$key]['data']['nodeName'] = $value['rulename'];
......@@ -166,9 +169,7 @@ 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