Add usernames to map for remove operations as well

This commit is contained in:
Anurag Awasthi 2019-08-01 14:17:47 +05:30
parent 8190b68771
commit f9b3771489
1 changed files with 1 additions and 1 deletions

View File

@ -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