mirror of https://github.com/apache/cloudstack.git
Add usernames to map for remove operations as well
This commit is contained in:
parent
8190b68771
commit
f9b3771489
|
|
@ -1710,7 +1710,7 @@
|
|||
var projectsByIds = {};
|
||||
$.each(jsonProjects.listprojectsresponse.project, function(idx, project) {
|
||||
// Only add current domain's projects for add operation as update template permissions supports that
|
||||
if (project.domainid === g_domainid && operation === "add") {
|
||||
if ((project.domainid === g_domainid && operation === "add") || operation === "remove") {
|
||||
projectsByIds[project.id] = {
|
||||
projName: project.name,
|
||||
hasPermission: false
|
||||
|
|
|
|||
Loading…
Reference in New Issue