From a2066832687fb4dfc7a152d1753cd6a1eefc200d Mon Sep 17 00:00:00 2001 From: bfederle Date: Thu, 10 May 2012 15:59:49 -0700 Subject: [PATCH] CS-14797 Pass IP address's account + domainid for listing VMs on PF/LB/Static NAT. This prevents an admin from attaching one user's VM to another user's IP address. --- ui/scripts/network.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index bd111001b88..244e0b2b02d 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -1180,6 +1180,8 @@ page: args.page, pageSize: pageSize, networkid: args.context.networks[0].id, + account: args.context.ipAddresses[0].account, + domainid: args.context.ipAddresses[0].domainid, listAll: true }, dataType: 'json', @@ -1763,6 +1765,8 @@ page: args.page, pageSize: pageSize, networkid: args.context.ipAddresses[0].associatednetworkid, + account: args.context.ipAddresses[0].account, + domainid: args.context.ipAddresses[0].domainid, listAll: true }, dataType: 'json',