2024-07-01 12:06:28 +00:00
|
|
|
|
2024-07-01 16:39:21 +00:00
|
|
|
INSERT IGNORE INTO salix.ACL (`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`)
|
|
|
|
VALUES ('Entry','filter','READ','ALLOW','ROLE','supplier');
|
|
|
|
|
|
|
|
INSERT IGNORE INTO salix.ACL (`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`)
|
2024-07-01 19:14:27 +00:00
|
|
|
VALUES ('Entry','getBuys','READ','ALLOW','ROLE','supplier');
|
2024-07-01 16:39:21 +00:00
|
|
|
|
|
|
|
INSERT IGNORE INTO salix.ACL (`model`,`property`,`accessType`,`permission`,`principalType`,`principalId`)
|
2024-07-01 19:14:27 +00:00
|
|
|
VALUES ('Entry','buyLabel','READ','ALLOW','ROLE','supplier');
|
2024-07-01 16:39:21 +00:00
|
|
|
|
|
|
|
INSERT IGNORE INTO `account`.`role` (`name`,`description`,`hasLogin`,`created`,`modified`)
|
|
|
|
VALUES ('supplier','Proveedores',1,'2017-10-10 14:58:58.000','2017-10-10 14:59:20.000');
|
|
|
|
SET @supplierFk =LAST_INSERT_ID();
|
|
|
|
INSERT IGNORE INTO account.roleInherit (`role`,`inheritsFrom`)
|
|
|
|
VALUES (@supplierFk,2);
|
2024-07-01 19:14:27 +00:00
|
|
|
|
|
|
|
UPDATE salix.ACL
|
|
|
|
SET principalId='$authenticated'
|
|
|
|
WHERE id=264;
|
|
|
|
|
2024-07-02 08:07:23 +00:00
|
|
|
|