fix_ismanager
This commit is contained in:
@@ -1445,7 +1445,8 @@ function load(req, res, version) {
|
||||
let gasordines = Gasordine.findAllIdApp(idapp);
|
||||
let ismanager = false;
|
||||
try {
|
||||
ismanager = User.isManager(req.user.perm)
|
||||
if (req.user)
|
||||
ismanager = User.isManager(req.user.perm)
|
||||
} catch(e) {
|
||||
}
|
||||
let products = Product.findAllIdApp(idapp, undefined, undefined, ismanager);
|
||||
|
||||
Reference in New Issue
Block a user