mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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) {
|
app.get('/search/:term', function (req, res) {
|
||||||
if (!req.user && !meta.config.allowGuestSearching) {
|
if (!req.user && meta.config.allowGuestSearching !== '1') {
|
||||||
return res.redirect('/403');
|
return res.redirect('/403');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user