|
@@ -220,14 +220,14 @@ public class RolePrivilegeController extends ControllerSupport {
|
|
@ApiOperation(value = "查询权限树")
|
|
@ApiOperation(value = "查询权限树")
|
|
@GetMapping("getPrivilegeTree/{groupId}")
|
|
@GetMapping("getPrivilegeTree/{groupId}")
|
|
public EleTreeNode getPrivilegeTree(@PathVariable Long groupId,
|
|
public EleTreeNode getPrivilegeTree(@PathVariable Long groupId,
|
|
- @RequestParam(required = false) Boolean all) {
|
|
|
|
|
|
+ @RequestParam(required = false) Boolean includeDisabledCodes) {
|
|
PrivilegeGroupEntity group = GlobalHelper.getEntity(privilegeGroupRepo, groupId,
|
|
PrivilegeGroupEntity group = GlobalHelper.getEntity(privilegeGroupRepo, groupId,
|
|
PrivilegeGroupEntity.class);
|
|
PrivilegeGroupEntity.class);
|
|
List<PrivilegeEntity> privilegeList = privilegeRepo
|
|
List<PrivilegeEntity> privilegeList = privilegeRepo
|
|
.findAllByGroupIdOrderByWeightDesc(groupId);
|
|
.findAllByGroupIdOrderByWeightDesc(groupId);
|
|
EleTreeNode rootNode = new EleTreeNode(BasicConsts.ROOT_PRIVILEGE_ID, group.getName());
|
|
EleTreeNode rootNode = new EleTreeNode(BasicConsts.ROOT_PRIVILEGE_ID, group.getName());
|
|
|
|
|
|
- if (null != all && all) {
|
|
|
|
|
|
+ if (null != includeDisabledCodes && includeDisabledCodes) {
|
|
if (!isSuperAdmin()) {
|
|
if (!isSuperAdmin()) {
|
|
throw new StatusException("012001", "非法请求");
|
|
throw new StatusException("012001", "非法请求");
|
|
}
|
|
}
|