mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
closes #613, fixed allowRegistration incase its undefined
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user