This commit is contained in:
AJ ONeal 2018-08-05 06:09:00 +00:00
parent 5940d4bd28
commit 4e3e155460
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ DB.accounts.add = function (obj) {
if (obj.id) {
// TODO more checks
DB._perms.push(obj);
} else if (obj.email) {
} else if ('email' === obj.nodes[0].type || obj.email) {
obj.email = undefined;
DB._perms.push(obj);
}
@ -978,7 +978,7 @@ app.get('/api/telebit.cloud/account', function (req, res) {
result.ports.length = 0;
grants.forEach(function (account) {
if (!account) { return; }
console.log('grants.forEach.account: ', account);
//console.log('XXXX grants.forEach.account: ', account);
account.domains.forEach(function (d) {
domainsMap[d.name] = d;
});