refs change fixtures acls

This commit is contained in:
Carlos Satorres 2023-07-27 17:26:36 +02:00
parent af60412232
commit d3aa6ddf6b
1 changed files with 0 additions and 21 deletions

View File

@ -1,21 +0,0 @@
-- Auto-generated SQL script. Actual values for binary/complex data types may differ - what you see is the default string representation of values.
INSERT INTO `account`.`role` (name,description)
VALUES ('deliveryAssistant','Asistencia de envios');
INSERT INTO `account`.`roleInherit` (role,inheritsFrom)
SELECT (SELECT id FROM account.role r WHERE r.name = 'deliveryAssistant'), ri.inheritsFrom
FROM account.roleInherit ri
JOIN account.role r ON r.id = ri.`role`
WHERE r.name = 'deliveryBoss';
DELETE FROM `account`.`roleInherit` WHERE role = 57;
INSERT INTO `account`.`roleInherit` (role, inheritsFrom)
SELECT (SELECT id FROM account.role WHERE name = 'deliveryBoss') role,
(SELECT id FROM account.role WHERE name = 'deliveryAssistant') roleInherit;
CALL account.role_syncPrivileges();