feat(salix): refs #7648 #7648 buyLabel
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Javier Segarra 2024-07-01 11:43:12 +02:00
parent 4decedddff
commit aa2a8a2ce8
3 changed files with 4 additions and 4 deletions

View File

@ -6,3 +6,5 @@ INSERT INTO salix.ACL (model,property,accessType,permission,principalType,princi
-- Auto-generated SQL script #202406281452
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Entry','getBuys','READ','ALLOW','ROLE','$authenticated');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Entry','buyLabel','READ','ALLOW','ROLE','$authenticated');

View File

@ -29,7 +29,8 @@ module.exports = Self => {
http: {
path: '/:id/buy-label',
verb: 'GET'
}
},
accessScopes: ['DEFAULT', 'read:multimedia']
});
Self.buyLabel = (ctx, id) => Self.printReport(ctx, id, 'buy-label');

View File

@ -9,10 +9,7 @@ module.exports = Self => {
require('../methods/entry/entryOrderPdf')(Self);
require('../methods/entry/addFromPackaging')(Self);
require('../methods/entry/addFromBuy')(Self);
<<<<<<< HEAD
=======
require('../methods/entry/buyLabel')(Self);
>>>>>>> 5c8d8ba28 (refs #7644 Added locales and changed name of method)
Self.observe('before save', async function(ctx, options) {
if (ctx.isNewInstance) return;