/[openfoncier]/trunk/data/pgsql/v3.13.0-a1-dev.sql
ViewVC logotype

Diff of /trunk/data/pgsql/v3.13.0-a1-dev.sql

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2601 by softime, Tue Dec 10 17:13:14 2013 UTC revision 2603 by vpihour, Wed Dec 11 11:46:47 2013 UTC
# Line 6  Line 6 
6  -- @package openfoncier  -- @package openfoncier
7  -- @version SVN : $Id$  -- @version SVN : $Id$
8  -------------------------------------------------------------------------------  -------------------------------------------------------------------------------
9    --
10    -- Ajout du droit de mise à jour des dates de réception de demande d'avis pour
11    -- la cellule suivi
12    --
13    INSERT INTO om_droit (om_droit, libelle, om_profil)
14    SELECT nextval('om_droit_seq'),'demandes_avis_mise_a_jour_des_dates',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
15    WHERE
16        NOT EXISTS (
17            SELECT om_droit FROM om_droit WHERE libelle = 'demandes_avis_mise_a_jour_des_dates' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
18        );
19    
20    --
21    -- Ajout/suppression des droits à l'instructions pour la finalisation/dé-finalisation des
22    -- consultations
23    --
24    INSERT INTO om_droit (om_droit, libelle, om_profil)
25    SELECT nextval('om_droit_seq'),'consultation_finaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
26    WHERE
27        NOT EXISTS (
28            SELECT om_droit FROM om_droit WHERE libelle = 'consultation_finaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
29        );
30    INSERT INTO om_droit (om_droit, libelle, om_profil)
31    SELECT nextval('om_droit_seq'),'consultation_definaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
32    WHERE
33        NOT EXISTS (
34            SELECT om_droit FROM om_droit WHERE libelle = 'consultation_definaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
35        );
36    DELETE FROM om_droit
37    WHERE libelle = 'consultation' OR libelle = 'consultation_modifier' AND
38        om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR');
39    INSERT INTO om_droit (om_droit, libelle, om_profil)
40    SELECT nextval('om_droit_seq'),'consultation_supprimer',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
41    WHERE
42        NOT EXISTS (
43            SELECT om_droit FROM om_droit WHERE libelle = 'consultation_supprimer' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
44        );
45    INSERT INTO om_droit (om_droit, libelle, om_profil)
46    SELECT nextval('om_droit_seq'),'consultation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
47    WHERE
48        NOT EXISTS (
49            SELECT om_droit FROM om_droit WHERE libelle = 'consultation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
50        );
51    INSERT INTO om_droit (om_droit, libelle, om_profil)
52    SELECT nextval('om_droit_seq'),'consultation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
53    WHERE
54        NOT EXISTS (
55            SELECT om_droit FROM om_droit WHERE libelle = 'consultation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
56        );
57    
58  --  --
59  -- Suppression des widgets "Nouveau dossier" et "Dossier en cours" pour  -- Suppression des widgets "Nouveau dossier" et "Dossier en cours" pour
# Line 26  WHERE (libelle = 'demande_nouveau_dossie Line 74  WHERE (libelle = 'demande_nouveau_dossie
74      OR libelle = 'demande_autre_dossier_tab'      OR libelle = 'demande_autre_dossier_tab'
75      OR libelle = 'demande_autre_dossier_ajouter'      OR libelle = 'demande_autre_dossier_ajouter'
76      OR libelle = 'menu_guichet_unique')      OR libelle = 'menu_guichet_unique')
 AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR');  
77    AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR');

Legend:
Removed from v.2601  
changed lines
  Added in v.2603

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26