mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
search and reset routes, the very last of the views to be refactored :shipit:
This commit is contained in:
@@ -46,6 +46,12 @@ middleware.prepareAPI = function(req, res, next) {
|
||||
next();
|
||||
};
|
||||
|
||||
middleware.guestSearchingAllowed = function(req, res, next) {
|
||||
if (!req.user && meta.config.allowGuestSearching !== '1') {
|
||||
return res.redirect('/403');
|
||||
}
|
||||
};
|
||||
|
||||
middleware.checkGlobalPrivacySettings = function(req, res, next) {
|
||||
var callerUID = req.user ? parseInt(req.user.uid, 10) : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user