bug 13965

For regular user, don't do list physical networks API call on instance
wizard
This commit is contained in:
Brian Federle 2012-02-23 12:14:47 -08:00
parent dd5379ff6f
commit ee6dc038f2
1 changed files with 13 additions and 11 deletions

View File

@ -306,17 +306,19 @@
});
//get network offerings (begin) ***
$.ajax({
url: createURL('listPhysicalNetworks'),
data: {
zoneid: args.currentData.zoneid
},
async: false,
success: function(json) {
physicalNetworkObjs = json.listphysicalnetworksresponse.physicalnetwork;
}
});
//get network offerings (begin) ***
if (isAdmin()) {
$.ajax({
url: createURL('listPhysicalNetworks'),
data: {
zoneid: args.currentData.zoneid
},
async: false,
success: function(json) {
physicalNetworkObjs = json.listphysicalnetworksresponse.physicalnetwork;
}
});
}
var apiCmd = "listNetworkOfferings&guestiptype=Isolated&supportedServices=sourceNat&state=Enabled&specifyvlan=false";
var array1 = [];