7152-devToTest_2414 #2228
|
@ -9,4 +9,6 @@ INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalTyp
|
|||
('SaleTracking','updateTracking','WRITE','ALLOW','ROLE','employee'),
|
||||
('SaleTracking','mark','WRITE','ALLOW','ROLE','employee'),
|
||||
('ItemBarcode','deleteByItemAndCode','WRITE','ALLOW','ROLE','employee'),
|
||||
('Collection','addItem','WRITE','ALLOW','ROLE','employee');
|
||||
('Collection','addItem','WRITE','ALLOW','ROLE','employee');
|
||||
('ExpeditionPallet', '*', 'READ', 'ALLOW', 'ROLE', 'production');
|
||||
|
|
@ -7,7 +7,7 @@ module.exports = Self => {
|
|||
verb: 'GET'
|
||||
},
|
||||
returns: {
|
||||
type: 'object',
|
||||
type: ['object'],
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -30,10 +30,11 @@ module.exports = Self => {
|
|||
|
||||
if (operator) {
|
||||
const printer = operator.printer();
|
||||
return {
|
||||
console.log({
|
||||
id: printer.id,
|
||||
name: printer.name
|
||||
};
|
||||
});
|
||||
return Array.isArray(printer) ? printer : [printer];
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue