- aggiornato la versione STAMPA, che non funzionava
This commit is contained in:
@@ -701,6 +701,7 @@ router.post('/join-pdf', authenticate, async (req, res) => {
|
||||
options.mydir = tools.getdirByIdApp(idapp);
|
||||
|
||||
try {
|
||||
|
||||
const mydirpath = tools.getdirByIdApp(options.idapp);
|
||||
const full_dir_out = tools.fixFilePath(path.join(mydirpath, options.dir_out));
|
||||
await fs.promises.mkdir(full_dir_out, { recursive: true });
|
||||
@@ -752,7 +753,7 @@ router.post('/join-pdf', authenticate, async (req, res) => {
|
||||
if (options.stampa) {
|
||||
raccolta.pdf_online_stampa_size = size;
|
||||
} else {
|
||||
raccolta.pdf_online = size;
|
||||
raccolta.pdf_online_size = size;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -764,7 +765,7 @@ router.post('/join-pdf', authenticate, async (req, res) => {
|
||||
// risout
|
||||
|
||||
return res.status(200).send(risout);
|
||||
} catch (e) {
|
||||
} catch (e) {5
|
||||
console.error('Err join-pdf', e.message);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1016,7 +1016,7 @@ async function importPage(req, idapp, jsonString) {
|
||||
const table = globalTables.getTableByTableName(tableName);
|
||||
|
||||
if (tableName === 'mypages') {
|
||||
if (User.isEditor(req.user.perm) || User.isCommerciale(req.user.perm)) {
|
||||
if (User.isAdmin(req.user.perm) || User.isEditor(req.user.perm) || User.isCommerciale(req.user.perm) || User.isCollaboratore(req.user.perm)) {
|
||||
for (const page of myexp.mypages) {
|
||||
const { ImportedRecords, newId } = await upsertRecord(table, page, idapp);
|
||||
if (!newIdPage && newId) {
|
||||
|
||||
Reference in New Issue
Block a user