mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
fixed bug where isMemberOfGroupList would return null if there were no groups to check, instead of false
This commit is contained in:
@@ -365,7 +365,7 @@ var async = require('async'),
|
||||
}
|
||||
groupNames = internals.removeEphemeralGroups(groupNames);
|
||||
if (groupNames.length === 0) {
|
||||
return callback(null, null);
|
||||
return callback(null, false);
|
||||
}
|
||||
|
||||
Groups.isMemberOfGroups(uid, groupNames, function(err, isMembers) {
|
||||
|
||||
Reference in New Issue
Block a user