This commit is contained in:
Surya Paolo
2024-01-16 11:16:31 +01:00
parent d81f533ecb
commit 4b9fe4d267

View File

@@ -1443,7 +1443,12 @@ function load(req, res, version) {
let catprods = CatProd.findAllIdApp(idapp);
let subcatprods = SubCatProd.findAllIdApp(idapp);
let gasordines = Gasordine.findAllIdApp(idapp);
let products = Product.findAllIdApp(idapp, undefined, undefined, User.isManager(req.user.perm));
let ismanager = false;
try {
ismanager = User.isManager(req.user.perm)
} catch(e) {
}
let products = Product.findAllIdApp(idapp, undefined, undefined, ismanager);
let productInfos = ProductInfo.findAllIdApp(idapp);
let scontisticas = Scontistica.findAllIdApp(idapp);
let departments = Department.findAllIdApp(idapp);