Commit 8cccf47f by 冷斌

fix bug

parent 61119aad
...@@ -144,8 +144,14 @@ class UserGroupAction extends AdministratorAction ...@@ -144,8 +144,14 @@ class UserGroupAction extends AdministratorAction
} }
$result = M('permission_node')->where($map)->order('id ASC')->findAll(); $result = M('permission_node')->where($map)->order('id ASC')->findAll();
$list = []; $list = [];
$except = [
17,21,22,
];
if ($result) { if ($result) {
foreach ($result as $key => $value) { foreach ($result as $key => $value) {
if (in_array($value['id'], $except)) {
continue;
}
$list[$key]['checkboxValue'] = $value['id']; $list[$key]['checkboxValue'] = $value['id'];
if ($value['pid'] == 0) { if ($value['pid'] == 0) {
$list[$key]['data']['nodeName'] = $value['rulename']; $list[$key]['data']['nodeName'] = $value['rulename'];
......
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