From d052db85e072989e8d0ef7d13231bca1fe8dc45c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 21 May 2015 12:26:47 -0400 Subject: [PATCH] fixed bug where isMemberOfGroupList would return null if there were no groups to check, instead of false --- src/groups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/groups.js b/src/groups.js index c6db87f3c3..72cb0e9b28 100644 --- a/src/groups.js +++ b/src/groups.js @@ -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) {