mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fixed potential guestSearch config bug
This commit is contained in:
@@ -741,7 +741,7 @@ var path = require('path'),
|
||||
});
|
||||
|
||||
app.get('/search/:term', function (req, res) {
|
||||
if (!req.user && !meta.config.allowGuestSearching) {
|
||||
if (!req.user && meta.config.allowGuestSearching !== '1') {
|
||||
return res.redirect('/403');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user