This commit is contained in:
barisusakli
2015-08-28 14:31:35 -04:00
parent bdfb168f2f
commit 25502f0687
13 changed files with 114 additions and 205 deletions

View File

@@ -296,11 +296,10 @@ var async = require('async'),
Groups.isHidden = function(groupName, callback) {
Groups.getGroupFields(groupName, ['hidden'], function(err, values) {
if (err) {
winston.warn('[groups.isHidden] Could not determine group hidden state (group: ' + groupName + ')');
return callback(null, true); // Default true
return callback(err);
}
callback(null, parseInt(values.hidden, 10));
callback(null, parseInt(values.hidden, 10) === 1);
});
};