|
|
@ -181,12 +181,12 @@
|
|
|
|
return callback(null, null);
|
|
|
|
return callback(null, null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async.some(groupNames, function(groupName, next) {
|
|
|
|
Groups.isMemberOfGroups(uid, groupNames, function(err, isMembers) {
|
|
|
|
Groups.isMember(uid, groupName, function(err, isMember) {
|
|
|
|
if (err) {
|
|
|
|
next(!err && isMember);
|
|
|
|
return callback(err);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}, function(result) {
|
|
|
|
|
|
|
|
callback(null, result);
|
|
|
|
callback(null, isMembers.indexOf(true) !== -1)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|