Merge pull request #3908 from pitaj/master

Maximum invites and invites are stored
This commit is contained in:
Julian Lam
2015-12-11 15:59:59 -05:00
11 changed files with 214 additions and 29 deletions

View File

@@ -117,7 +117,7 @@ Controllers.register = function(req, res, next) {
async.waterfall([
function(next) {
if (registrationType === 'invite-only') {
if (registrationType === 'invite-only' || registrationType === 'admin-invite-only') {
user.verifyInvitation(req.query, next);
} else {
next();