update acl and squema db

This commit is contained in:
Bernat 2018-11-15 12:02:12 +01:00
parent 6206884330
commit e5525e7647
5 changed files with 15 additions and 2 deletions

View File

@ -67,7 +67,7 @@ describe('Claim edit basic data path', () => {
it('should confirm the Is paid with mana checkbox is checked', async () => { it('should confirm the Is paid with mana checkbox is checked', async () => {
const value = await nightmare const value = await nightmare
.evaluate((selector) => { .evaluate(selector => {
return document.querySelector(selector).checked; return document.querySelector(selector).checked;
}, selectors.claimBasicData.isPaidWithManaCheckbox); }, selectors.claimBasicData.isPaidWithManaCheckbox);

View File

@ -1,2 +1,5 @@
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (118, 'WorkerTeam', '*', '*', 'ALLOW', 'role', 'salesPerson'); INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (118, 'WorkerTeam', '*', '*', 'ALLOW', 'role', 'salesPerson');
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (119, 'TicketRequest', '*', '*', 'ALLOW', 'role', 'salesPerson'); INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (119, 'Travel', '*', 'READ', 'ALLOW', 'role', 'employee');
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (120, 'Travel', '*', 'WRITE', 'ALLOW', 'role', 'buyer');
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (121, 'Item', 'regularize', '*', 'ALLOW', 'role', 'employee');
INSERT INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`) VALUES (122, 'TicketRequest', '*', '*', 'ALLOW', 'role', 'employee');

View File

@ -0,0 +1,10 @@
USE `hedera`;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `orderTicket` AS
SELECT
`b`.`order_id` AS `orderFk`, `b`.`Id_Ticket` AS `ticketFk`
FROM
`vn2008`.`order_Tickets` `b`;