bug 12306

-Use listAll=true for projects and networks listing as ROOT admin
This commit is contained in:
bfederle 2012-01-17 10:56:27 -08:00
parent bda032b874
commit e7d55d77f5
2 changed files with 4 additions and 2 deletions

View File

@ -196,6 +196,7 @@
id: 'networks',
fields: {
name: { label: 'Name' },
accounts: { label: 'Account' },
zonename: { label: 'Zone' },
type: { label: 'Type' },
vlan: { label: 'VLAN' },

View File

@ -485,7 +485,8 @@
$.ajax({
url: createURL('listProjects', { ignoreProject: true }),
data: {
accountId: user.userid
accountId: user.userid,
listAll: isAdmin()
},
dataType: 'json',
async: true,
@ -538,7 +539,7 @@
}
}
var apiCmd = "listProjects&page=" + args.page + "&pagesize=" + pageSize + array1.join("");
var apiCmd = "listProjects&page=" + args.page + "&pagesize=" + pageSize + array1.join("") + '&listAll=' + isAdmin();
$.ajax({
url: createURL(apiCmd, { ignoreProject: true }),
dataType: 'json',