mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
closes #3508
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user