Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 2002-e2e-client-summary
gitea/salix/2002-e2e-client-summary This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-02-13 09:47:14 +01:00
commit 845e01c8dd
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1,3 @@
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
VALUES ('TicketWeekly', '*', 'WRITE', 'ALLOW', 'ROLE', 'buyer');
UPDATE salix.ACL SET accessType = 'READ' WHERE (id = '91');

View File

@ -8,7 +8,7 @@ describe('Ticket descriptor path', () => {
beforeAll(async() => { beforeAll(async() => {
browser = await getBrowser(); browser = await getBrowser();
page = browser.page; page = browser.page;
await page.loginAndModule('employee', 'ticket'); await page.loginAndModule('buyer', 'ticket');
await page.accessToSection('ticket.weekly.index'); await page.accessToSection('ticket.weekly.index');
}); });

View File

@ -7,7 +7,11 @@ class Controller extends Component {
this.aclService = aclService; this.aclService = aclService;
this.$httpParamSerializer = $httpParamSerializer; this.$httpParamSerializer = $httpParamSerializer;
this.moreOptions = [ this.moreOptions = [
{name: 'Add turn', callback: this.showAddTurnDialog}, {
name: 'Add turn',
acl: 'buyer',
callback: this.showAddTurnDialog
},
{name: 'Show Delivery Note', callback: this.showDeliveryNote}, {name: 'Show Delivery Note', callback: this.showDeliveryNote},
{name: 'Send Delivery Note', callback: this.confirmDeliveryNote}, {name: 'Send Delivery Note', callback: this.confirmDeliveryNote},
{name: 'Delete ticket', callback: this.showDeleteTicketDialog}, {name: 'Delete ticket', callback: this.showDeleteTicketDialog},