Compare commits

...

1 Commits

Author SHA1 Message Date
Vicent Llopis 9564484609 a
gitea/salix/pipeline/head This commit looks good Details
2023-05-30 10:08:49 +02:00
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ module.exports = function(Self) {
require('../methods/vn-user/validate-token')(Self);
require('../methods/vn-user/privileges')(Self);
Self.definition.settings.acls.find(acl => acl.property == 'create').principalId = 'itManagement';
Self.definition.settings.acls = Self.definition.settings.acls.filter(acl => acl.property !== 'create');
// Validations

View File

@ -6,4 +6,5 @@ INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalTyp
VALUES
('VnUser', '*', '*', 'ALLOW', 'ROLE', 'itManagement'),
('VnUser', '__get__preview', 'READ', 'ALLOW', 'ROLE', 'employee'),
('VnUser', 'preview', '*', 'ALLOW', 'ROLE', 'employee');
('VnUser', 'preview', '*', 'ALLOW', 'ROLE', 'employee'),
('VnUser', 'create', '*', 'ALLOW', 'ROLE', 'itManagement');