- Mail in a Box: comandi per aggiungere/modificare/rimuovere le caselle di posta

- aggiunto idMyGroup: ospiti siti di gruppi (AbitareGliIblei)
This commit is contained in:
Surya Paolo
2024-09-12 14:49:00 +02:00
parent 13322a7e0b
commit f25e1f3992
18 changed files with 625 additions and 57 deletions

View File

@@ -1283,9 +1283,11 @@ router.delete('/delrec/:table/:id', authenticate, async (req, res) => {
telegrambot.sendMsgTelegramToTheManagers(idapp, text);
}
cancellato = true;
return res.send({ code: server_constants.RIS_CODE_OK, msg: '' });
if (!User.isAdmin(req.user.perm)) {
cancellato = true;
return res.send({ code: server_constants.RIS_CODE_OK, msg: '' });
}
}
}