fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user