|
@@ -1,5 +1,6 @@
|
|
|
package cn.com.qmth.examcloud.core.basic.api.controller;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Set;
|
|
@@ -55,6 +56,9 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@RequestMapping("${$rmp.ctr.basic}/rolePrivilege")
|
|
|
public class RolePrivilegeController extends ControllerSupport {
|
|
|
|
|
|
+ private static List<String> disabledCodeList = Arrays
|
|
|
+ .asList(new String[]{"index_privilege_group_list", "index_app_list"});
|
|
|
+
|
|
|
@Autowired
|
|
|
AppRepo appRepo;
|
|
|
|
|
@@ -171,7 +175,7 @@ public class RolePrivilegeController extends ControllerSupport {
|
|
|
List<PrivilegeEntity> privilegeList = privilegeRepo
|
|
|
.findAllByGroupIdOrderByWeightDesc(groupId);
|
|
|
EleTreeNode rootNode = new EleTreeNode(BasicConsts.ROOT_PRIVILEGE_ID, group.getName());
|
|
|
- TreeUtil.convert2OneEleTreeNode(rootNode, privilegeList);
|
|
|
+ TreeUtil.convert2OneEleTreeNode(rootNode, privilegeList, disabledCodeList);
|
|
|
|
|
|
return rootNode;
|
|
|
}
|