mirror of https://github.com/apache/cloudstack.git
bug 13965
For regular user, don't do list physical networks API call on instance wizard
This commit is contained in:
parent
dd5379ff6f
commit
ee6dc038f2
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue