poter visualizzare i propri beni e servizi anche se non sei registrato alla app !

This commit is contained in:
Surya Paolo
2023-01-04 02:09:42 +01:00
parent 18b827f5f4
commit dd1c9d573f
5 changed files with 30 additions and 6 deletions

View File

@@ -558,7 +558,7 @@ router.post('/setsubrec', authenticate, (req, res) => {
router.post('/gettable', authenticate, (req, res) => {
const params = req.body;
let idapp = req.user.idapp;
let idapp = req.user ? req.user.idapp : params.idapp;
const mytable = globalTables.getTableByTableName(params.table);
// console.log('mytable', mytable);
if (!mytable) {