mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - IP Address page - configuration tab - fix a bug that root-admin was unable to see LB service of IP Address owned by regular-user or domain-admin.
This commit is contained in:
parent
257822a41f
commit
b8e3a20ba0
|
|
@ -1712,8 +1712,11 @@
|
|||
|
||||
if('networks' in args.context && args.context.networks[0].vpcid == null) { //a non-VPC network from Guest Network section
|
||||
$.ajax({
|
||||
url: createURL("listNetworkOfferings&id=" + args.context.networks[0].networkofferingid),
|
||||
dataType: "json",
|
||||
url: createURL('listNetworkOfferings'),
|
||||
data: {
|
||||
listAll: true,
|
||||
id: args.context.networks[0].networkofferingid
|
||||
},
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var networkoffering = json.listnetworkofferingsresponse.networkoffering[0];
|
||||
|
|
@ -1745,7 +1748,11 @@
|
|||
}
|
||||
else { //IP is associated with a tier
|
||||
$.ajax({
|
||||
url: createURL("listNetworks&id=" + args.context.ipAddresses[0].associatednetworkid),
|
||||
url: createURL('listNetworks'),
|
||||
data: {
|
||||
listAll: true,
|
||||
id: args.context.ipAddresses[0].associatednetworkid
|
||||
},
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var networkObj = json.listnetworksresponse.network[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue