salix/db/changes/10390-constitution/00-acl.sql

28 lines
1.1 KiB
MySQL
Raw Normal View History

2021-11-24 13:36:12 +00:00
INSERT INTO `salix`.`ACL`
(model, property, accessType, permission, principalType, principalId)
2021-11-24 14:27:09 +00:00
VALUES
('EntryObservation', '*', '*', 'ALLOW', 'ROLE', 'buyer'),
('LdapConfig', '*', '*', 'ALLOW', 'ROLE', 'sysadmin'),
('SambaConfig', '*', '*', 'ALLOW', 'ROLE', 'sysadmin'),
('ACL', '*', '*', 'ALLOW', 'ROLE', 'developer'),
('AccessToken', '*', '*', 'ALLOW', 'ROLE', 'developer'),
('MailAliasAccount', '*', '*', 'ALLOW', 'ROLE', 'marketing'),
('MailAliasAccount', '*', '*', 'ALLOW', 'ROLE', 'hr'),
2021-11-25 10:30:55 +00:00
('MailAlias', '*', '*', 'ALLOW', 'ROLE', 'hr'),
2021-11-24 14:27:09 +00:00
('MailForward', '*', '*', 'ALLOW', 'ROLE', 'marketing'),
('MailForward', '*', '*', 'ALLOW', 'ROLE', 'hr'),
2021-11-25 10:30:55 +00:00
('RoleInherit', '*', '*', 'ALLOW', 'ROLE', 'it'),
('RoleRole', '*', '*', 'ALLOW', 'ROLE', 'it'),
2021-11-24 14:27:09 +00:00
('AccountConfig', '*', '*', 'ALLOW', 'ROLE', 'sysadmin');
2021-11-24 13:36:12 +00:00
UPDATE `salix`.`ACL`
SET accessType='*', principalId='it'
WHERE model = 'Role';
2021-11-24 14:27:09 +00:00
DELETE FROM `salix`.`ACL`
WHERE id IN (280, 281);
2021-11-24 13:36:12 +00:00
UPDATE `salix`.`ACL`
2021-11-25 10:30:55 +00:00
SET accessType='*', principalId='marketing'
2021-11-24 14:27:09 +00:00
WHERE id=279;