chimney
This commit is contained in:
parent
5940d4bd28
commit
4e3e155460
|
@ -131,7 +131,7 @@ DB.accounts.add = function (obj) {
|
||||||
if (obj.id) {
|
if (obj.id) {
|
||||||
// TODO more checks
|
// TODO more checks
|
||||||
DB._perms.push(obj);
|
DB._perms.push(obj);
|
||||||
} else if (obj.email) {
|
} else if ('email' === obj.nodes[0].type || obj.email) {
|
||||||
obj.email = undefined;
|
obj.email = undefined;
|
||||||
DB._perms.push(obj);
|
DB._perms.push(obj);
|
||||||
}
|
}
|
||||||
|
@ -978,7 +978,7 @@ app.get('/api/telebit.cloud/account', function (req, res) {
|
||||||
result.ports.length = 0;
|
result.ports.length = 0;
|
||||||
grants.forEach(function (account) {
|
grants.forEach(function (account) {
|
||||||
if (!account) { return; }
|
if (!account) { return; }
|
||||||
console.log('grants.forEach.account: ', account);
|
//console.log('XXXX grants.forEach.account: ', account);
|
||||||
account.domains.forEach(function (d) {
|
account.domains.forEach(function (d) {
|
||||||
domainsMap[d.name] = d;
|
domainsMap[d.name] = d;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue