Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • 1.0.0
2 results

composer.lock

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    002.privilege.sql 3.33 KiB
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('autoformindex','Autoform - Gestion de l''index',5000,'UnicaenAutoform\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'index', 'Afficher le menu', 10
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'autoformindex';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('autoformformulaire','Autoform - Gestion des formulaires',5100,'UnicaenAutoform\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'formulaire_index', 'Accéder à l''index', 10 UNION
        SELECT 'formulaire_afficher', 'Afficher', 20 UNION
        SELECT 'formulaire_ajouter', 'Ajouter', 30 UNION
        SELECT 'formulaire_modifier', 'Modifier', 40 UNION
        SELECT 'formulaire_historiser', 'Historiser/Restaurer', 50 UNION
        SELECT 'formulaire_supprimer', 'Supprimer', 60
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'autoformformulaire';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('autoformcategorie','Autoform - Gestion des catégories',5200,'UnicaenAutoform\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'categorief_index', 'Accéder à l''index', 10 UNION
        SELECT 'categorief_afficher', 'Afficher', 20 UNION
        SELECT 'categorief_ajouter', 'Ajouter', 30 UNION
        SELECT 'categorief_modifier', 'Modifier', 40 UNION
        SELECT 'categorief_historiser', 'Historiser/Restaurer', 50 UNION
        SELECT 'categorief_supprimer', 'Supprimer', 60
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'autoformcategorie';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('autoformchamp','Autoform - Gestion des champs',5300,'UnicaenAutoform\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'champ_index', 'Accéder à l''index', 10 UNION
        SELECT 'champ_afficher', 'Afficher', 20 UNION
        SELECT 'champ_ajouter', 'Ajouter', 30 UNION
        SELECT 'champ_modifier', 'Modifier', 40 UNION
        SELECT 'champ_historiser', 'Historiser/Restaurer', 50 UNION
        SELECT 'champ_supprimer', 'Supprimer', 60
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'autoformchamp';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('autoformvalidation','Autoform - Gestion des validations',5400,'UnicaenAutoform\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'validationf_index', 'Accéder à l''index', 10 UNION
        SELECT 'validationf_afficher', 'Afficher', 20 UNION
        SELECT 'validationf_ajouter', 'Ajouter', 30 UNION
        SELECT 'validationf_modifier', 'Modifier', 40 UNION
        SELECT 'validationf_historiser', 'Historiser/Restaurer', 50 UNION
        SELECT 'validationf_supprimer', 'Supprimer', 60
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'autoformchamp';