Added rankfighting to ban.
This commit is contained in:
parent
b138b26f27
commit
ef4894e409
6 changed files with 41 additions and 12 deletions
|
|
@ -220,7 +220,7 @@ channelSchema.statics.reqPermCheck = function(perm, chanField = "chanName"){
|
|||
}else{
|
||||
//If not, prevent the request from going through and tell them why
|
||||
res.status(401);
|
||||
return res.send({error:`You do not have a high enough rank to access this resource.`});
|
||||
return res.send({errors:[{type: "Unauthorized", msg: "You do not have a high enough rank to access this resource.", date: new Date()}]});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue