mirror of https://github.com/poanetwork/quorum.git
permissions: updated the getOrgDetails to return suborg list as well
This commit is contained in:
parent
e243b4eef3
commit
115842dbea
|
@ -192,7 +192,7 @@ func (s *QuorumControlsAPI) GetOrgDetails(orgId string) types.OrgDetailInfo {
|
||||||
nodeList = append(nodeList, a)
|
nodeList = append(nodeList, a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return types.OrgDetailInfo{NodeList: nodeList, RoleList: roleList, AcctList: acctList}
|
return types.OrgDetailInfo{NodeList: nodeList, RoleList: roleList, AcctList: acctList, SubOrgList: types.OrgInfoMap.GetOrg(orgId).SubOrgList}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *QuorumControlsAPI) AddOrg(orgId string, url string, acct common.Address, txa ethapi.SendTxArgs) ExecStatus {
|
func (s *QuorumControlsAPI) AddOrg(orgId string, url string, acct common.Address, txa ethapi.SendTxArgs) ExecStatus {
|
||||||
|
|
|
@ -80,6 +80,7 @@ type OrgDetailInfo struct {
|
||||||
NodeList []NodeInfo
|
NodeList []NodeInfo
|
||||||
RoleList []RoleInfo
|
RoleList []RoleInfo
|
||||||
AcctList []AccountInfo
|
AcctList []AccountInfo
|
||||||
|
SubOrgList []string
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrgStruct struct {
|
type OrgStruct struct {
|
||||||
|
|
Loading…
Reference in New Issue