This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Description
lib/middleware/groups-required.js
userGroups.each(
function (group, iterateNext) {
if (groups.indexOf(group.name) > -1) {
if (!all || --done === 0) {
isInGroup = true;
}
}
iterateNext();
},
function () {
callback(null, isInGroup);
}
);
The first function never fires, it looks like the underlying collection's items property is empty even though the groups are expanded on the user object.