Commit 3fb67ddd authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Ajout : droit sur la consultation de tous les traitements en cours dans l'entité

Correction : sql de DEV
parent b155a02c
...@@ -112,28 +112,28 @@ INSERT INTO public.formulaires (id, organisations_id, libelle, active, descripti ...@@ -112,28 +112,28 @@ INSERT INTO public.formulaires (id, organisations_id, libelle, active, descripti
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1, 1, 'input', 1, 1, '{"name":"nom","placeholder":"nom","label":"Nom","obligatoire":false}', '2020-03-02 15:21:06', '2020-03-02 15:21:06', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1, 1, 'input', 1, 1, '{"name":"nom","placeholder":"nom","label":"Nom","obligatoire":false}', '2020-03-02 15:21:06', '2020-03-02 15:21:06', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (2, 1, 'textarea', 1, 2, '{"name":"prenom","placeholder":"prenom","label":"prenom","obligatoire":false}', '2020-03-02 15:21:06', '2020-03-02 15:21:06', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (2, 1, 'textarea', 1, 2, '{"name":"prenom","placeholder":"prenom","label":"prenom","obligatoire":false}', '2020-03-02 15:21:06', '2020-03-02 15:21:06', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (3, 2, 'input', 1, 1, '{"name":"raison_sociale","placeholder":"","label":"Raison social","obligatoire":false}', '2020-03-02 15:21:45', '2020-03-02 15:21:45', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (3, 2, 'input', 1, 1, '{"name":"raison_sociale","placeholder":"","label":"Raison social","obligatoire":false}', '2020-03-02 15:21:45', '2020-03-02 15:21:45', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1377, 82, 'input', 1, 1, '{"name":"aaa","placeholder":"AAA","label":"AAA","default":"","obligatoire":true,"repeat":false,"conditions":"{\"bc6e-d1a3\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"aaa\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1377, 82, 'input', 1, 1, '{"name":"aaa","placeholder":"AAA","label":"AAA","default":"","obligatoire":true,"repeat":false,"conditions":"{\"bc6e-d1a3\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"aaa\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1378, 82, 'textarea', 3, 1, '{"name":"bbb","placeholder":"BBB","label":"BBB","default":"","obligatoire":false,"repeat":false,"conditions":"{\"b545-2b0e\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"bbb\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1378, 82, 'textarea', 3, 1, '{"name":"bbb","placeholder":"BBB","label":"BBB","default":"","obligatoire":false,"repeat":false,"conditions":"{\"b545-2b0e\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"bbb\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1379, 82, 'date', 8, 1, '{"name":"ccc","placeholder":"jj\/mm\/aaaa","label":"CCC","default":"","obligatoire":false,"repeat":false,"conditions":"{\"61f4-ddaa\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"ccc\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1379, 82, 'date', 8, 1, '{"name":"ccc","placeholder":"jj\/mm\/aaaa","label":"CCC","default":"","obligatoire":false,"repeat":false,"conditions":"{\"61f4-ddaa\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"ccc\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1380, 82, 'checkboxes', 10, 1, '{"name":"ddd","label":"DDD","options":["1","2","3"],"default":["0"],"obligatoire":false,"repeat":false,"conditions":"{\"5931-65c3\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"ddd\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1380, 82, 'checkboxes', 10, 1, '{"name":"ddd","label":"DDD","options":["1","2","3"],"default":["0"],"obligatoire":false,"repeat":false,"conditions":"{\"5931-65c3\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"ddd\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1381, 82, 'radios', 14, 1, '{"name":"eee","label":"EEE","default":"6","options":["4","5","6"],"obligatoire":true,"repeat":false,"conditions":"{\"b206-f94f\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"eee\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1381, 82, 'radios', 14, 1, '{"name":"eee","label":"EEE","default":"6","options":["4","5","6"],"obligatoire":true,"repeat":false,"conditions":"{\"b206-f94f\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"eee\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1382, 82, 'deroulant', 18, 1, '{"name":"fff","label":"FFF","options":["7","8","9"],"default":"2","obligatoire":false,"repeat":false,"conditions":"{\"a6d1-c647\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"fff\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1382, 82, 'deroulant', 18, 1, '{"name":"fff","label":"FFF","options":["7","8","9"],"default":"2","obligatoire":false,"repeat":false,"conditions":"{\"a6d1-c647\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"fff\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1383, 82, 'multi-select', 21, 1, '{"name":"ggg","label":"GGG","options":["10","11","12"],"default":["1"],"obligatoire":false,"repeat":false,"conditions":"{\"3adf-6ac5\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"ggg\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1383, 82, 'multi-select', 21, 1, '{"name":"ggg","label":"GGG","options":["10","11","12"],"default":["1"],"obligatoire":false,"repeat":false,"conditions":"{\"3adf-6ac5\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"ggg\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1384, 82, 'checkboxes', 27, 1, '{"name":"hhh","label":"HHH","options":["A","B","C"],"default":["0"],"obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1384, 82, 'checkboxes', 27, 1, '{"name":"hhh","label":"HHH","options":["A","B","C"],"default":["0"],"obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1385, 82, 'radios', 30, 1, '{"name":"iii","label":"III","default":"E","options":["D","E","F"],"obligatoire":true,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1385, 82, 'radios', 30, 1, '{"name":"iii","label":"III","default":"E","options":["D","E","F"],"obligatoire":true,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1386, 82, 'deroulant', 34, 1, '{"name":"jjj","label":"JJJ","options":["G","H","I"],"default":"1","obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1386, 82, 'deroulant', 34, 1, '{"name":"jjj","label":"JJJ","options":["G","H","I"],"default":"1","obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1387, 82, 'multi-select', 36, 1, '{"name":"kkk","label":"KKK","options":["J","K","L"],"default":["1"],"obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1387, 82, 'multi-select', 36, 1, '{"name":"kkk","label":"KKK","options":["J","K","L"],"default":["1"],"obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1388, 82, 'checkboxes', 42, 1, '{"name":"zaza","label":"zaza","options":["Riri","Fifi","Loulou"],"default":[],"obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1388, 82, 'checkboxes', 42, 1, '{"name":"zaza","label":"zaza","options":["Riri","Fifi","Loulou"],"default":[],"obligatoire":false,"repeat":false}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1389, 82, 'input', 11, 2, '{"name":"condition_ddd","placeholder":"Condition DDD","label":"Condition DDD","default":"","obligatoire":true,"repeat":false,"conditions":"{\"6363-2e57\":{\"ifTheField\":\"ddd\",\"hasValue\":\"ddd0\",\"thenTheField\":\"condition_ddd\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1389, 82, 'input', 11, 2, '{"name":"condition_ddd","placeholder":"Condition DDD","label":"Condition DDD","default":"","obligatoire":true,"repeat":false,"conditions":"{\"6363-2e57\":{\"ifTheField\":\"ddd\",\"hasValue\":\"ddd0\",\"thenTheField\":\"condition_ddd\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1390, 82, 'input', 15, 2, '{"name":"condition_eee","placeholder":"Condition EEE","label":"Condition EEE","default":"","obligatoire":false,"repeat":false,"conditions":"{\"a3c1-8727\":{\"ifTheField\":\"eee\",\"hasValue\":\"eee2\",\"thenTheField\":\"condition_eee\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1390, 82, 'input', 15, 2, '{"name":"condition_eee","placeholder":"Condition EEE","label":"Condition EEE","default":"","obligatoire":false,"repeat":false,"conditions":"{\"a3c1-8727\":{\"ifTheField\":\"eee\",\"hasValue\":\"6\",\"thenTheField\":\"condition_eee\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1391, 82, 'input', 18, 2, '{"name":"condition_fff","placeholder":"Condition FFF","label":"Condition FFF","default":"","obligatoire":false,"repeat":false,"conditions":"{\"d9c1-7447\":{\"ifTheField\":\"fff\",\"hasValue\":\"2\",\"thenTheField\":\"condition_fff\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1391, 82, 'input', 18, 2, '{"name":"condition_fff","placeholder":"Condition FFF","label":"Condition FFF","default":"","obligatoire":false,"repeat":false,"conditions":"{\"d9c1-7447\":{\"ifTheField\":\"fff\",\"hasValue\":\"2\",\"thenTheField\":\"condition_fff\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1392, 82, 'input', 21, 2, '{"name":"condition_ggg","placeholder":"condition GGG","label":"Condition GGG","default":"","obligatoire":false,"repeat":false,"conditions":"{\"c605-23a7\":{\"ifTheField\":\"ggg\",\"hasValue\":\"1\",\"thenTheField\":\"condition_ggg\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1392, 82, 'input', 21, 2, '{"name":"condition_ggg","placeholder":"condition GGG","label":"Condition GGG","default":"","obligatoire":false,"repeat":false,"conditions":"{\"c605-23a7\":{\"ifTheField\":\"ggg\",\"hasValue\":\"1\",\"thenTheField\":\"condition_ggg\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1393, 82, 'input', 28, 2, '{"name":"condition_hhh","placeholder":"Condition HHH","label":"Condition HHH","default":"","obligatoire":true,"repeat":false,"conditions":"{\"f33a-933b\":{\"ifTheField\":\"hhh\",\"hasValue\":\"hhh0\",\"thenTheField\":\"condition_hhh\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1393, 82, 'input', 28, 2, '{"name":"condition_hhh","placeholder":"Condition HHH","label":"Condition HHH","default":"","obligatoire":true,"repeat":false,"conditions":"{\"f33a-933b\":{\"ifTheField\":\"hhh\",\"hasValue\":\"hhh0\",\"thenTheField\":\"condition_hhh\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1394, 82, 'input', 31, 2, '{"name":"condition_iii","placeholder":"Condition III","label":"Condition III","default":"","obligatoire":false,"repeat":false,"conditions":"{\"94c5-f47f\":{\"ifTheField\":\"iii\",\"hasValue\":\"iii1\",\"thenTheField\":\"condition_iii\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1394, 82, 'input', 31, 2, '{"name":"condition_iii","placeholder":"Condition III","label":"Condition III","default":"","obligatoire":false,"repeat":false,"conditions":"{\"94c5-f47f\":{\"ifTheField\":\"iii\",\"hasValue\":\"E\",\"thenTheField\":\"condition_iii\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1395, 82, 'input', 34, 2, '{"name":"condition_jjj","placeholder":"Aide \u00e0 la saisie","label":"Condition JJJ","default":"","obligatoire":false,"repeat":false,"conditions":"{\"98ec-d35a\":{\"ifTheField\":\"jjj\",\"hasValue\":\"1\",\"thenTheField\":\"condition_jjj\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1395, 82, 'input', 34, 2, '{"name":"condition_jjj","placeholder":"Aide \u00e0 la saisie","label":"Condition JJJ","default":"","obligatoire":false,"repeat":false,"conditions":"{\"98ec-d35a\":{\"ifTheField\":\"jjj\",\"hasValue\":\"1\",\"thenTheField\":\"condition_jjj\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1396, 82, 'input', 36, 2, '{"name":"condition_kkk","placeholder":"Condition KKK","label":"Condition KKK","default":"","obligatoire":false,"repeat":false,"conditions":"{\"2735-96f1\":{\"ifTheField\":\"kkk\",\"hasValue\":\"1\",\"thenTheField\":\"condition_kkk\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1396, 82, 'input', 36, 2, '{"name":"condition_kkk","placeholder":"Condition KKK","label":"Condition KKK","default":"","obligatoire":false,"repeat":false,"conditions":"{\"2735-96f1\":{\"ifTheField\":\"kkk\",\"hasValue\":\"1\",\"thenTheField\":\"condition_kkk\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1397, 82, 'textarea', 41, 2, '{"name":"condition_zaza","placeholder":"Condition ZAZA","label":"Condition ZAZA","default":"","obligatoire":false,"repeat":false,"conditions":"{\"38a7-4b06\":{\"ifTheField\":\"zaza\",\"hasValue\":\"zaza2\",\"thenTheField\":\"condition_zaza\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1397, 82, 'textarea', 41, 2, '{"name":"condition_zaza","placeholder":"Condition ZAZA","label":"Condition ZAZA","default":"","obligatoire":false,"repeat":false,"conditions":"{\"38a7-4b06\":{\"ifTheField\":\"zaza\",\"hasValue\":\"zaza2\",\"thenTheField\":\"condition_zaza\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1398, 82, 'textarea', 46, 1, '{"name":"toto","placeholder":"Aide \u00e0 la saisie","label":"TOTO","default":"","obligatoire":false,"repeat":false,"conditions":"{\"cde1-35bf\":{\"ifTheField\":\"transfertHorsUe\",\"hasValue\":\"Oui\",\"thenTheField\":\"toto\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false); INSERT INTO public.champs (id, formulaire_id, type, ligne, colonne, details, created, modified, champ_coresponsable, champ_soustraitant) VALUES (1398, 82, 'textarea', 46, 1, '{"name":"toto","placeholder":"Aide \u00e0 la saisie","label":"TOTO","default":"","obligatoire":false,"repeat":false,"conditions":"{\"cde1-35bf\":{\"ifTheField\":\"transfert_hors_ue\",\"hasValue\":\"1\",\"thenTheField\":\"toto\",\"mustBe\":\"shown\",\"ifNot\":\"hidden\"}}"}', '2020-04-16 09:37:12', '2020-04-16 09:37:12', false, false);
-- --
...@@ -520,13 +520,19 @@ INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, mo ...@@ -520,13 +520,19 @@ INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, mo
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (57, 4, 4, '2020-03-02 15:19:54', '2020-03-02 15:19:54'); INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (57, 4, 4, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (58, 4, 7, '2020-03-02 15:19:54', '2020-03-02 15:19:54'); INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (58, 4, 7, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (59, 4, 20, '2020-03-02 15:19:54', '2020-03-02 15:19:54'); INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (59, 4, 20, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (60, 1, 28, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (61, 1, 29, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (62, 1, 30, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (63, 1, 31, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (64, 1, 32, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
INSERT INTO public.droits (id, organisation_user_id, liste_droit_id, created, modified) VALUES (65, 1, 33, '2020-03-02 15:19:54', '2020-03-02 15:19:54');
-- --
-- Name: droits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: - -- Name: droits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
-- --
SELECT pg_catalog.setval('public.droits_id_seq', 59, true); SELECT pg_catalog.setval('public.droits_id_seq', 65, true);
-- --
...@@ -679,7 +685,7 @@ SELECT pg_catalog.setval('public.ldapm_models_groups_id_seq', 1, false); ...@@ -679,7 +685,7 @@ SELECT pg_catalog.setval('public.ldapm_models_groups_id_seq', 1, false);
-- Name: liste_droits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: - -- Name: liste_droits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
-- --
SELECT pg_catalog.setval('public.liste_droits_id_seq', 31, true); -- SELECT pg_catalog.setval('public.liste_droits_id_seq', 31, true);
-- --
...@@ -912,12 +918,13 @@ INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (69, 1, 30); ...@@ -912,12 +918,13 @@ INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (69, 1, 30);
INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (70, 2, 30); INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (70, 2, 30);
INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (71, 4, 32); INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (71, 4, 32);
INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (72, 5, 32); INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (72, 5, 32);
INSERT INTO public.role_droits (id, role_id, liste_droit_id) VALUES (73, 5, 33);
-- --
-- Name: role_droits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: - -- Name: role_droits_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
-- --
SELECT pg_catalog.setval('public.role_droits_id_seq', 72, true); SELECT pg_catalog.setval('public.role_droits_id_seq', 73, true);
-- --
......
...@@ -416,4 +416,7 @@ UPDATE fiches SET donnees_sensibles = true WHERE id IN (SELECT valeurs.fiche_id ...@@ -416,4 +416,7 @@ UPDATE fiches SET donnees_sensibles = true WHERE id IN (SELECT valeurs.fiche_id
UPDATE fiches SET donnees_sensibles = false WHERE id IN (SELECT valeurs.fiche_id FROM valeurs WHERE valeurs.champ_name = 'donneesSensible' AND valeurs.valeur = 'Non'); UPDATE fiches SET donnees_sensibles = false WHERE id IN (SELECT valeurs.fiche_id FROM valeurs WHERE valeurs.champ_name = 'donneesSensible' AND valeurs.valeur = 'Non');
DELETE FROM valeurs WHERE champ_name = 'donneesSensible'; DELETE FROM valeurs WHERE champ_name = 'donneesSensible';
INSERT INTO liste_droits (libelle, value, created, modified) VALUES
('Consulter tous les traitements dans l''entité', 33, NOW(), NOW());
COMMIT; COMMIT;
...@@ -61,7 +61,7 @@ class PannelController extends AppController { ...@@ -61,7 +61,7 @@ class PannelController extends AppController {
$listeDroitIndex = [ListeDroit::REDIGER_TRAITEMENT, ListeDroit::VALIDER_TRAITEMENT, ListeDroit::VISER_TRAITEMENT]; $listeDroitIndex = [ListeDroit::REDIGER_TRAITEMENT, ListeDroit::VALIDER_TRAITEMENT, ListeDroit::VISER_TRAITEMENT];
if ($action === 'all_traitements') { if ($action === 'all_traitements') {
$this->Droits->assertDpo(); $this->Droits->assertAuthorized([ListeDroit::CONSULTER_ALL_TRAITEMENT]);
$this->Droits->assertNotSu(); $this->Droits->assertNotSu();
} elseif ($action === 'archives') { } elseif ($action === 'archives') {
$this->Droits->assertAuthorized([ListeDroit::REDIGER_TRAITEMENT]); $this->Droits->assertAuthorized([ListeDroit::REDIGER_TRAITEMENT]);
......
...@@ -59,6 +59,7 @@ class ListeDroit extends AppModel { ...@@ -59,6 +59,7 @@ class ListeDroit extends AppModel {
const CONSULTER_ARTICLE_FAQ = 30; // Consulter un article dans la FAQ const CONSULTER_ARTICLE_FAQ = 30; // Consulter un article dans la FAQ
const SUPPRIMER_ARTICLE_FAQ = 31; // Supprimer un article dans la FAQ const SUPPRIMER_ARTICLE_FAQ = 31; // Supprimer un article dans la FAQ
const GESTION_TYPAGE = 32; //Gestion des types d'annexes const GESTION_TYPAGE = 32; //Gestion des types d'annexes
const CONSULTER_ALL_TRAITEMENT = 33; // Consultation de l'ensemble des traitements en cour dans l'entité
const LISTE_DROITS_ADMINISTRATEUR = [ const LISTE_DROITS_ADMINISTRATEUR = [
ListeDroit::REDIGER_TRAITEMENT, ListeDroit::REDIGER_TRAITEMENT,
...@@ -145,6 +146,7 @@ class ListeDroit extends AppModel { ...@@ -145,6 +146,7 @@ class ListeDroit extends AppModel {
ListeDroit::CONSULTER_ARTICLE_FAQ, ListeDroit::CONSULTER_ARTICLE_FAQ,
ListeDroit::SUPPRIMER_ARTICLE_FAQ, ListeDroit::SUPPRIMER_ARTICLE_FAQ,
ListeDroit::GESTION_TYPAGE, ListeDroit::GESTION_TYPAGE,
ListeDroit::CONSULTER_ALL_TRAITEMENT,
]; ];
const LISTE_DROITS_DPO_MINIMUM = [ const LISTE_DROITS_DPO_MINIMUM = [
...@@ -165,6 +167,7 @@ class ListeDroit extends AppModel { ...@@ -165,6 +167,7 @@ class ListeDroit extends AppModel {
ListeDroit::CONSULTER_ARTICLE_FAQ, ListeDroit::CONSULTER_ARTICLE_FAQ,
ListeDroit::SUPPRIMER_ARTICLE_FAQ, ListeDroit::SUPPRIMER_ARTICLE_FAQ,
ListeDroit::GESTION_TYPAGE, ListeDroit::GESTION_TYPAGE,
ListeDroit::CONSULTER_ALL_TRAITEMENT,
]; ];
/** /**
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
] ]
], ],
__d('default', 'default.sousTitreAllTraitements') => [ __d('default', 'default.sousTitreAllTraitements') => [
'disabled' => !($this->Autorisation->authorized(['5'], $this->Session->read('Droit.liste'))), 'disabled' => !($this->Autorisation->authorized(['33'], $this->Session->read('Droit.liste'))),
'class' => 'fa-eye', 'class' => 'fa-eye',
'url' => [ 'url' => [
'controller' => 'pannel', 'controller' => 'pannel',
......
Markdown is supported
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