fix: refs #4774 fix sql acl
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Carlos Satorres 2024-12-03 11:53:26 +01:00
parent 3df0508c8d
commit dad7a272cd
1 changed files with 28 additions and 7 deletions

View File

@ -1,13 +1,34 @@
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
VALUES
('CompanyI18n','*','*','ALLOW','ROLE','employee'),
('ItemTypeI18n','*','*','ALLOW','ROLE','employee'),
('InkI18n','*','*','ALLOW','ROLE','employee'),
('OriginI18n','*','*','ALLOW','ROLE','employee'),
('StateI18n','*','*','ALLOW','ROLE','employee'),
('TagI18n','*','*','ALLOW','ROLE','employee'),
('itemCategoryI18n','*','*','ALLOW','ROLE','employee'),
('CompanyI18n','find','READ','ALLOW','ROLE','employee'),
('CompanyI18n','upsert','WRITE','ALLOW','ROLE','employee'),
('CompanyI18n','deleteById','WRITE','ALLOW','ROLE','employee'),
('CompanyI18n','create','WRITE','ALLOW','ROLE','employee'),
('ItemTypeI18n','find','READ','ALLOW','ROLE','employee'),
('ItemTypeI18n','upsert','WRITE','ALLOW','ROLE','employee'),
('ItemTypeI18n','deleteById','WRITE','ALLOW','ROLE','employee'),
('ItemTypeI18n','create','WRITE','ALLOW','ROLE','employee'),
('InkI18n','find','READ','ALLOW','ROLE','employee'),
('InkI18n','upsert','WRITE','ALLOW','ROLE','employee'),
('InkI18n','deleteById','WRITE','ALLOW','ROLE','employee'),
('InkI18n','create','WRITE','ALLOW','ROLE','employee'),
('OriginI18n','find','READ','ALLOW','ROLE','employee'),
('OriginI18n','upsert','WRITE','ALLOW','ROLE','employee'),
('OriginI18n','deleteById','WRITE','ALLOW','ROLE','employee'),
('OriginI18n','create','WRITE','ALLOW','ROLE','employee'),
('StateI18n','find','READ','ALLOW','ROLE','employee'),
('StateI18n','upsert','WRITE','ALLOW','ROLE','employee'),
('StateI18n','deleteById','WRITE','ALLOW','ROLE','employee'),
('StateI18n','create','WRITE','ALLOW','ROLE','employee'),
('TagI18n','find','READ','ALLOW','ROLE','employee'),
('TagI18n','upsert','WRITE','ALLOW','ROLE','employee'),
('TagI18n','deleteById','WRITE','ALLOW','ROLE','employee'),
('TagI18n','create','WRITE','ALLOW','ROLE','employee'),
('itemCategoryI18n','find','READ','ALLOW','ROLE','employee'),
('itemCategoryI18n','upsert','WRITE','ALLOW','ROLE','employee'),
('itemCategoryI18n','deleteById','WRITE','ALLOW','ROLE','employee'),
('itemCategoryI18n','create','WRITE','ALLOW','ROLE','employee'),
('Application','getI18nTables','*','ALLOW','ROLE','employee');
ALTER TABLE vn.companyI18n