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

This commit is contained in:
Julian Lam
2015-05-21 12:26:47 -04:00
parent aae3ac6b98
commit d052db85e0

View File

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