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
gitea/salix/2002-e2e-client-summary This commit looks good
Details
This commit is contained in:
commit
845e01c8dd
|
@ -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');
|
|
@ -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');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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},
|
||||||
|
|
Loading…
Reference in New Issue