mirror of https://github.com/apache/cloudstack.git
bug 12306
-Use listAll=true for projects and networks listing as ROOT admin
This commit is contained in:
parent
bda032b874
commit
e7d55d77f5
|
|
@ -196,6 +196,7 @@
|
|||
id: 'networks',
|
||||
fields: {
|
||||
name: { label: 'Name' },
|
||||
accounts: { label: 'Account' },
|
||||
zonename: { label: 'Zone' },
|
||||
type: { label: 'Type' },
|
||||
vlan: { label: 'VLAN' },
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue