获取角色列表剔除隐藏角色
This commit is contained in:
parent
4c910646e5
commit
ca89f1a428
Binary file not shown.
@ -644,6 +644,7 @@ public class CooperationWeb extends ActionWeb {
|
|||||||
}
|
}
|
||||||
List<CooperationRoleDto> dtoList = new ArrayList<>();
|
List<CooperationRoleDto> dtoList = new ArrayList<>();
|
||||||
List<CoeCooperationRoleModel> list = api.queryCooperationRoleList(teamId);
|
List<CoeCooperationRoleModel> list = api.queryCooperationRoleList(teamId);
|
||||||
|
boolean isOlderVersion = SDK.getAppAPI().getPropertyBooleanValue("com.actionsoft.apps.coe.pal", "IsOlderVersion", true);
|
||||||
for (CoeCooperationRoleModel role : list) {
|
for (CoeCooperationRoleModel role : list) {
|
||||||
CooperationRoleDto dto = new CooperationRoleDto();
|
CooperationRoleDto dto = new CooperationRoleDto();
|
||||||
dto.setRoleId(role.getId());
|
dto.setRoleId(role.getId());
|
||||||
@ -654,11 +655,16 @@ public class CooperationWeb extends ActionWeb {
|
|||||||
"" : role.getRoleType() == CoeCooperationConst.ROLE_TYPE_DESIGNER ?
|
"" : role.getRoleType() == CoeCooperationConst.ROLE_TYPE_DESIGNER ?
|
||||||
"" : role.getRoleType() == CoeCooperationConst.ROLE_TYPE_VISITOR ?
|
"" : role.getRoleType() == CoeCooperationConst.ROLE_TYPE_VISITOR ?
|
||||||
"" : "");
|
"" : "");
|
||||||
|
//新版权限隐藏隐式用户角色
|
||||||
|
if (!isOlderVersion && role.getIsUser() == 1){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
dtoList.add(dto);
|
dtoList.add(dto);
|
||||||
}
|
}
|
||||||
ResponseObject ro = ResponseObject.newOkResponse();
|
ResponseObject ro = ResponseObject.newOkResponse();
|
||||||
ro.put("roleData", JSON.toJSON(dtoList));
|
ro.put("roleData", JSON.toJSON(dtoList));
|
||||||
ro.put("roleIds", roleIds);
|
ro.put("roleIds", roleIds);
|
||||||
|
ro.put("isOlderVersion", isOlderVersion);
|
||||||
return ro.toString();
|
return ro.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user