refs #5468 feat: eliminado acl nativo y añadido a salix.ACL
gitea/salix/pipeline/head Build queued... Details

This commit is contained in:
Vicent Llopis 2023-05-30 10:07:17 +02:00
parent 81a8f383aa
commit 7d59c6ec0c
3 changed files with 3 additions and 5 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');

View File

@ -7,7 +7,4 @@ module.exports = Self => {
require('../methods/account/logout')(Self);
require('../methods/account/change-password')(Self);
require('../methods/account/set-password')(Self);
require('../methods/account/change-mail-forwarding')(Self);
require('../methods/account/add-mail-alias')(Self);
require('../methods/account/delete-mail-alias')(Self);
};