Added template data for admin invite only

v1.18.x
Peter Jaszkowiak 9 years ago
parent 67905667a9
commit 259eb585d6

@ -159,6 +159,7 @@ function render(req, res, data, next) {
data.templateData.maximumInvites = meta.config.maximumInvites;
data.templateData.inviteOnly = registrationType === 'invite-only' || registrationType === 'admin-invite-only';
data.templateData.adminInviteOnly = registrationType === 'admin-invite-only';
data.templateData['reputation:disabled'] = parseInt(meta.config['reputation:disabled'], 10) === 1;
user.getInvitesNumber(req.uid, function(err, num) {

Loading…
Cancel
Save