From 74ea0ce9fd6368df9d4973a2d2b13008d16053fa Mon Sep 17 00:00:00 2001 From: vicent Date: Wed, 10 May 2023 13:44:51 +0200 Subject: [PATCH] refs #5468 actualizados acls --- db/changes/231801/00-aclAccount.sql | 9 --------- db/changes/232001/00-aclAccount.sql | 8 ++++++++ db/changes/232001/00-aclVnUser.sql | 8 ++++++++ modules/account/front/main/index.html | 2 +- 4 files changed, 17 insertions(+), 10 deletions(-) delete mode 100644 db/changes/231801/00-aclAccount.sql create mode 100644 db/changes/232001/00-aclAccount.sql create mode 100644 db/changes/232001/00-aclVnUser.sql diff --git a/db/changes/231801/00-aclAccount.sql b/db/changes/231801/00-aclAccount.sql deleted file mode 100644 index 875c4aa8a..000000000 --- a/db/changes/231801/00-aclAccount.sql +++ /dev/null @@ -1,9 +0,0 @@ -DELETE - FROM `salix`.`ACL` - WHERE model='Account' AND property='*' AND accessType='*'; - -INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId) - VALUES('Account', '*', 'WRITE', 'ALLOW', 'ROLE', 'sysadmin'); - -INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId) - VALUES('Account', '*', 'READ', 'ALLOW', 'ROLE', 'employee'); diff --git a/db/changes/232001/00-aclAccount.sql b/db/changes/232001/00-aclAccount.sql new file mode 100644 index 000000000..bf8106b98 --- /dev/null +++ b/db/changes/232001/00-aclAccount.sql @@ -0,0 +1,8 @@ +DELETE + FROM `salix`.`ACL` + WHERE model='Account' AND property='*' AND accessType='*'; + +INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId) + VALUES + ('Account', '*', 'WRITE', 'ALLOW', 'ROLE', 'sysadmin'), + ('Account', '*', 'READ', 'ALLOW', 'ROLE', 'employee'); diff --git a/db/changes/232001/00-aclVnUser.sql b/db/changes/232001/00-aclVnUser.sql new file mode 100644 index 000000000..c9df0ac2a --- /dev/null +++ b/db/changes/232001/00-aclVnUser.sql @@ -0,0 +1,8 @@ +DELETE + FROM `salix`.`ACL` + WHERE model = 'VnUser' AND property = '*' AND principalId = 'employee'; + +INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId) + VALUES + ('VnUser', '__get__preview', 'READ', 'ALLOW', 'ROLE', 'employee'), + ('VnUser', 'preview', '*', 'ALLOW', 'ROLE', 'employee'); diff --git a/modules/account/front/main/index.html b/modules/account/front/main/index.html index 5872a328d..36b493ec4 100644 --- a/modules/account/front/main/index.html +++ b/modules/account/front/main/index.html @@ -1,6 +1,6 @@