fix: refs #7244 Added collection ACL #3198

Merged
guillermo merged 4 commits from 7244-collectionAcl into dev 2024-11-15 06:01:49 +00:00
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'create', 'WRITE', 'productionBoss'),
guillermo marked this conversation as resolved Outdated

He tenido que utilizar *, ya que estoy llamando a un método nativo de loopback

He tenido que utilizar *, ya que estoy llamando a un método nativo de loopback

A dia de hui estem posant-los explicits perque hi ha una tarea de no permetre els *
el natiu crida a un d'estos posals tots.

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'create', 'WRITE', 'productionBoss');

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'upsert', 'WRITE', 'productionBoss');

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'replaceById', 'WRITE', 'productionBoss');

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'updateAll', 'WRITE', 'productionBoss');

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'updateAttributes', 'WRITE', 'productionBoss');

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'deleteById', 'WRITE', 'productionBoss');

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'destroyAll', 'WRITE', 'productionBoss');

INSERT INTO salix.ACL (model, property, accessType, principalId)
VALUES ('Collection', 'destroyById', 'WRITE', 'productionBoss');
A dia de hui estem posant-los explicits perque hi ha una tarea de no permetre els * el natiu crida a un d'estos posals tots. ``` INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'create', 'WRITE', 'productionBoss'); INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'upsert', 'WRITE', 'productionBoss'); INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'replaceById', 'WRITE', 'productionBoss'); INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'updateAll', 'WRITE', 'productionBoss'); INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'updateAttributes', 'WRITE', 'productionBoss'); INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'deleteById', 'WRITE', 'productionBoss'); INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'destroyAll', 'WRITE', 'productionBoss'); INSERT INTO salix.ACL (model, property, accessType, principalId) VALUES ('Collection', 'destroyById', 'WRITE', 'productionBoss'); ```
('Collection', 'upsert', 'WRITE', 'productionBoss'),
('Collection', 'replaceById', 'WRITE', 'productionBoss'),
('Collection', 'updateAll', 'WRITE', 'productionBoss'),
('Collection', 'updateAttributes', 'WRITE', 'productionBoss'),
('Collection', 'deleteById', 'WRITE', 'productionBoss'),
('Collection', 'destroyAll', 'WRITE', 'productionBoss'),
('Collection', 'destroyById', 'WRITE', 'productionBoss');