fixed bug where isMemberOfGroupList would return null if there were no groups to check, instead of false

v1.18.x
Julian Lam 10 years ago
parent aae3ac6b98
commit d052db85e0

@ -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) {

Loading…
Cancel
Save