* Add oputil import support for *.NA and AREAS.BBS

This commit is contained in:
Bryan Ashby 2017-02-20 11:31:24 -07:00
parent 5c58fd2cfa
commit 0ca2ca9bf2
8 changed files with 355 additions and 37 deletions

View file

@ -35,6 +35,8 @@ exports.trimMessageAreasScheduledEvent = trimMessageAreasScheduledEvent;
function getAvailableMessageConferences(client, options) {
options = options || { includeSystemInternal : false };
assert(client || true === options.noClient);
// perform ACS check per conf & omit system_internal if desired
return _.omitBy(Config.messageConferences, (conf, confTag) => {
@ -42,7 +44,7 @@ function getAvailableMessageConferences(client, options) {
return true;
}
return !client.acs.hasMessageConfRead(conf);
return client && !client.acs.hasMessageConfRead(conf);
});
}