Commit 4b43e0ac authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #17436 TIME 0:10 update data_fr.sql + structure.sql

parent 6f55ecd1
......@@ -22,24 +22,24 @@ TRUNCATE TABLE external_signatory_book;
INSERT INTO external_signatory_book (id, label, type, connection_data, otp_code, message_content) VALUES (1, 'Signature externe Yousign', 'yousign', '{"apiKey": "a24291dc9d3475ec4fddded67df782b9", "apiUri": "https://staging-api.yousign.com"}', '["sms", "email"]', '{"otp_sms": "eSignature : votre code de sécurité pour confirmer la signature de vos documents est {{code}}", "notification": {"body": "<div>Bonjour&nbsp;<span class=\"mceNonEditable\"><tag data-tag-name=\"recipient.firstname\" data-tag-type=\"string\">Pr&eacute;nom du destinataire</tag></span>&nbsp;<span class=\"mceNonEditable\"><tag data-tag-name=\"recipient.lastname\" data-tag-type=\"string\">Nom du destinataire</tag></span>,<br /><br /></div>\n<div>Des documents mis &agrave; votre disposition requi&egrave;rent votre signature ou validation.<br /><br /></div>\n<div>Merci de cliquer sur le bouton ci-dessous pour les lire :<br />&nbsp;<span class=\"mceNonEditable\"><tag data-tag-name=\"url\" data-tag-type=\"button\" data-tag-title=\"Acc&eacute;dez aux documents\">Lien d''acc&egrave;s</tag></span>&nbsp;</div>\n<div>&nbsp;</div>", "subject": "Document à traiter"}}');
TRUNCATE TABLE groups_privileges;
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (1, 1, 'manage_users');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (2, 1, 'manage_documents');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (3, 1, 'manage_email_configuration');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (4, 1, 'manage_connections');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (5, 1, 'manage_groups');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (7, 2, 'manage_users');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (8, 2, 'manage_documents');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (9, 2, 'indexation');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (10, 2, 'manage_groups');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (11, 1, 'manage_history');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (12, 1, 'manage_password_rules');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (13, 4, 'indexation');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (14, 5, 'manage_users');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (15, 5, 'manage_documents');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (17, 5, 'manage_history');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (18, 1, 'indexation');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (19, 1, 'manage_notifications');
INSERT INTO groups_privileges (id, group_id, privilege) VALUES (20, 1, 'manage_customization');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (1, 1, 'manage_users', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (2, 1, 'manage_documents', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (3, 1, 'manage_email_configuration', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (4, 1, 'manage_connections', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (5, 1, 'manage_groups', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (7, 2, 'manage_users', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (8, 2, 'manage_documents', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (9, 2, 'indexation', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (10, 2, 'manage_groups', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (11, 1, 'manage_history', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (12, 1, 'manage_password_rules', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (13, 4, 'indexation', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (14, 5, 'manage_users', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (15, 5, 'manage_documents', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (17, 5, 'manage_history', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (18, 1, 'indexation', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (19, 1, 'manage_notifications', '{}');
INSERT INTO groups_privileges (id, group_id, privilege, parameters) VALUES (20, 1, 'manage_customization', '{}');
TRUNCATE TABLE password_rules;
......
......@@ -127,6 +127,7 @@ CREATE TABLE groups_privileges
id serial NOT NULL,
group_id INTEGER NOT NULL,
privilege character varying(128) NOT NULL,
parameters jsonb DEFAULT '{}' NOT NULL,
CONSTRAINT groups_privileges_pkey PRIMARY KEY (id),
CONSTRAINT groups_privileges_unique_key UNIQUE (group_id, privilege)
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment