fix: refs #7301 update ACL insertion to use INSERT IGNORE and refine property value
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pablo Natek 2024-12-12 09:25:51 +01:00
parent 2ba931bedb
commit b5d4d31abb
1 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
-- Place your SQL code here
INSERT INTO salix.ACL (model, property, accessType, permission, principalType, principalId, editorFk)
VALUES('InventoryConfig', '*', 'READ', 'ALLOW', 'ROLE', 'buyer', 100);
INSERT IGNORE INTO salix.ACL (model, property, accessType, permission, principalType, principalId)
VALUES('InventoryConfig', 'find', 'READ', 'ALLOW', 'ROLE', 'buyer');