mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-09 00:36:34 +02:00
catch all deleted/missing and 404
This commit is contained in:
@@ -260,6 +260,9 @@ module.exports = function (middleware) {
|
||||
}
|
||||
|
||||
res.locals.userData = await accountHelpers.getUserDataByUserSlug(req.params.userslug, req.uid, req.query);
|
||||
if (!res.locals.userData) {
|
||||
return next('route');
|
||||
}
|
||||
next();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user