From d9eefd667c2720606db506d9ebfb19bb68cbeeb9 Mon Sep 17 00:00:00 2001 From: akhoury Date: Thu, 12 Dec 2013 22:51:17 -0500 Subject: [PATCH] fixed potential guestSearch config bug --- src/webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webserver.js b/src/webserver.js index 1a04bf6860..4136c7d3db 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -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'); }