fixed search routes

This commit is contained in:
psychobunny
2014-03-09 21:43:35 -04:00
parent 875c8ed66c
commit 6ea4d89edc
4 changed files with 67 additions and 63 deletions

View File

@@ -50,6 +50,8 @@ middleware.guestSearchingAllowed = function(req, res, next) {
if (!req.user && meta.config.allowGuestSearching !== '1') {
return res.redirect('/403');
}
next();
};
middleware.checkGlobalPrivacySettings = function(req, res, next) {