Compare commits

...

4 Commits

Author SHA1 Message Date
Javi Gallego 6d6ea802d0 Merge branch 'dev' into 3946-permisos
gitea/salix/pipeline/head This commit looks good Details
2023-04-03 15:03:45 +02:00
Javi Gallego 83b57f4cc2 acls
gitea/salix/pipeline/head This commit is unstable Details
2022-08-04 14:07:37 +02:00
Javi Gallego 618db1661b Merge branch 'dev' into 3946-permisos
gitea/salix/pipeline/head There was a failure building this commit Details
2022-06-20 07:35:02 +02:00
javi d9b07bc879 acl de client
gitea/salix/pipeline/head There was a failure building this commit Details
2022-05-12 10:05:04 +02:00
4 changed files with 91 additions and 1 deletions

View File

@ -0,0 +1,40 @@
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','updateFiscalData','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','updateAddress','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','summary','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','sendSms','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','lastActiveTickets','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','isValidClient','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','hasCustomerRole','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getTransactions','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getMana','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getDebt','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getCard','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getAverageInvoiced','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','createWithUser','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','createReceipt','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','consumption','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','confirmTransaction','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','checkDuplicatedData','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','canCreateTicket','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','canBeInvoiced','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','addressesPropagateRe','WRITE','ALLOW','ROLE','employee');

View File

@ -0,0 +1,10 @@
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Account','syncAll','*','ALLOW','ROLE','developer');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Account','syncById','*','ALLOW','ROLE','developer');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Account','sync','*','ALLOW','ROLE','developer');
UPDATE salix.ACL SET accessType='READ' WHERE id=1;
INSERT INTO salix.ACL
(model, property, accessType, permission, principalType, principalId)
VALUES('Account', '*', 'WRITE', 'ALLOW', 'ROLE', 'itBoss');

View File

@ -0,0 +1,40 @@
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','updateFiscalData','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','updateAddress','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','summary','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','sendSms','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','lastActiveTickets','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','isValidClient','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','hasCustomerRole','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getTransactions','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getMana','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getDebt','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getCard','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','getAverageInvoiced','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','createWithUser','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','createReceipt','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','consumption','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','confirmTransaction','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','checkDuplicatedData','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','canCreateTicket','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','canBeInvoiced','WRITE','ALLOW','ROLE','employee');
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES ('Client','addressesPropagateRe','WRITE','ALLOW','ROLE','employee');

View File

@ -8,7 +8,7 @@ describe('Account create and basic data path', () => {
beforeAll(async() => { beforeAll(async() => {
browser = await getBrowser(); browser = await getBrowser();
page = browser.page; page = browser.page;
await page.loginAndModule('developer', 'account'); await page.loginAndModule('itBoss', 'account');
}); });
afterAll(async() => { afterAll(async() => {