- Bot Telegram ...
This commit is contained in:
@@ -122,7 +122,7 @@ router.patch('/:id', authenticate, (req, res) => {
|
||||
|
||||
tools.mylogshow('PATCH USER: ', id);
|
||||
|
||||
if (!User.isAdmin(req.user)) {
|
||||
if (!User.isAdmin(req.user.perm)) {
|
||||
// If without permissions, exit
|
||||
return res.status(404).send({ code: server_constants.RIS_CODE_ERR_UNAUTHORIZED, msg: '' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user