mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
use default 403 message for accounts
This commit is contained in:
@@ -37,9 +37,7 @@ function userNotAllowed(res) {
|
|||||||
if (res.locals.isAPI) {
|
if (res.locals.isAPI) {
|
||||||
res.status(403).json('not-allowed');
|
res.status(403).json('not-allowed');
|
||||||
} else {
|
} else {
|
||||||
res.render('403', {
|
res.render('403');
|
||||||
error: 'Not allowed.'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user