- Send email when new subscriber to the newsletter

This commit is contained in:
Paolo Arena
2019-11-01 19:59:31 +01:00
parent 93ccc73517
commit f787fd3cea
8 changed files with 92 additions and 22 deletions

View File

@@ -208,7 +208,7 @@ router.patch('/chval', authenticate, (req, res) => {
const mytable = getTableByTableName(mydata.table);
const fieldsvalue = mydata.fieldsvalue;
tools.mylogshow('PATCH CHVAL: ', id);
tools.mylogshow('PATCH CHVAL: ', id, fieldsvalue);
if (!User.isAdmin(req.user) && !User.isManager(req.user)) {
// If without permissions, exit