closes #613, fixed allowRegistration incase its undefined

This commit is contained in:
Baris Soner Usakli
2013-12-23 20:59:55 -05:00
parent 256a2fa9c6
commit e9fbed71ae
5 changed files with 36 additions and 7 deletions

View File

@@ -193,7 +193,7 @@
});
app.post('/register', function(req, res) {
if(parseInt(meta.config.allowRegistration, 10) === 0) {
if(meta.config.allowRegistration !== undefined && parseInt(meta.config.allowRegistration, 10) === 0) {
return res.send(403);
}