mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 13795
Allow domain admin to view domain users' projects status 13795: resolved fixed
This commit is contained in:
parent
4f08afb784
commit
dffa097906
@ -583,6 +583,11 @@
|
||||
}
|
||||
|
||||
var apiCmd = "listProjects&page=" + args.page + "&pagesize=" + pageSize + array1.join("") + '&listAll=true';
|
||||
|
||||
if (isDomainAdmin()) {
|
||||
apiCmd += '&domainid=' + args.context.users[0].domainid;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: createURL(apiCmd, { ignoreProject: true }),
|
||||
dataType: 'json',
|
||||
@ -767,8 +772,13 @@
|
||||
dataProvider: function(args) {
|
||||
var projectID = args.context.projects[0].id;
|
||||
|
||||
var url = 'listProjects';
|
||||
|
||||
if (isDomainAdmin()) {
|
||||
url += '&domainid=' + args.context.users[0].domainid;
|
||||
}
|
||||
$.ajax({
|
||||
url: createURL('listProjects'),
|
||||
url: createURL(url),
|
||||
data: {
|
||||
listAll: true,
|
||||
id: projectID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user