Added admin-only invites

This commit is contained in:
Peter Jaszkowiak
2015-11-28 15:33:17 -07:00
parent af8e649246
commit 67905667a9
4 changed files with 37 additions and 31 deletions

View File

@@ -108,7 +108,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();