Skip to content

Commit ccf99be

Browse files
author
Jessica Wang
committed
cloudstack 3.0 UI - Instances page - VM Wizard - select network step - VPC filter - list only VPCs belonging to the current login (i.e. If the current login is root-admin, do not show VPCs belonging to regular-user/domain-admin in Instances page's VM Wizard.)
1 parent 4b3af0c commit ccf99be

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎ui/scripts/instanceWizard.js‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,10 @@
322322

323323
var networkObjs, vpcObjs;
324324

325-
// Get VPCs
325+
//listVPCs without account/domainid/listAll parameter will return only VPCs belonging to the current login. That's what should happen in Instances page's VM Wizard.
326+
//i.e. If the current login is root-admin, do not show VPCs belonging to regular-user/domain-admin in Instances page's VM Wizard.
326327
$.ajax({
327-
url: createURL('listVPCs'),
328-
data: isDomainAdmin() ?
329-
{ account: args.context.users[0].account, domainid: args.context.users[0].domainid } :
330-
{ listAll: true },
328+
url: createURL('listVPCs'),
331329
async: false,
332330
success: function(json) {
333331
vpcObjs = json.listvpcsresponse.vpc ? json.listvpcsresponse.vpc : [];

0 commit comments

Comments
 (0)