mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
closes #5132
This commit is contained in:
@@ -107,7 +107,7 @@ module.exports = function (middleware) {
|
||||
|
||||
if (results.banned) {
|
||||
req.logout();
|
||||
return res.redirect('/?banned=' + (results.banReason || ''));
|
||||
return res.redirect('/?banned=' + (results.banReason || 'no-reason'));
|
||||
}
|
||||
|
||||
results.user.isAdmin = results.isAdmin;
|
||||
|
||||
Reference in New Issue
Block a user