mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
fixed #2434
This commit is contained in:
@@ -27,7 +27,7 @@ middleware.isAdmin = function(req, res, next) {
|
||||
}
|
||||
|
||||
if (!isAdmin) {
|
||||
res.status(403).redirect('/403');
|
||||
res.status(403).redirect(nconf.get('relative_path') + '/403');
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user