mailbox: export the real owner info

This commit is contained in:
Girish Ramakrishnan
2022-02-17 16:24:29 -08:00
parent dd364733a4
commit 8258a8c777

View File

@@ -450,12 +450,14 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
}
var content = JSON.stringify(result.map(function (mailbox) {
var owner = $scope.owners.find(function (o) { return o.id === mailbox.ownerId; }); // owner may not exist
return {
name: mailbox.name,
domain: mailbox.domain,
ownerId: mailbox.ownerId,
ownerType: mailbox.ownerType,
active: mailbox.ative,
owner: owner ? owner.display : '', // this meta property is set when we get the user list
ownerType: owner ? owner.type : '',
active: mailbox.active,
aliases: mailbox.aliases
};
}), null, 2);