Skip to content
Snippets Groups Projects
Select Git revision
  • ec0435feac6cceb8d76d2ee41531c315271b55f2
  • master default protected
  • cleanup_fixtures
  • add-openvox
  • freebsd-14
  • remove-legacy-top-scope-syntax
  • rel430
  • tests
  • revert-363-augeas-module-cleanup
  • release-4.1.0
  • puppet8
  • relax-dependencies
  • rel400
  • mode
  • puppet7
  • release-3.1.0
  • freebsd13
  • freebsd11
  • stdlib
  • centos
  • fedora
  • v5.1.0
  • v5.0.0
  • v4.5.0
  • v4.4.0
  • v4.3.0
  • v4.2.1
  • v4.2.0
  • v4.1.0
  • v4.0.0
  • v3.1.0
  • v3.0.0
  • v2.0.0
  • 1.12.0
  • 1.11.0
  • 1.10.0
  • 1.9.0
  • 1.8.0
  • 1.7.0
  • 1.6.0
  • 1.5.0
41 results

init.pp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    002_privileges.sql 2.02 KiB
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('unicaenegracon','Egracon - Gestion du module',10000,'UnicaenEgracon\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'unicaenegracon_index', 'Accéder à la fiche descriptive', 10 UNION
        SELECT 'unicaenegracon_conversions', 'Accéder à la table de conversion', 20 UNION
        SELECT 'unicaenegracon_bacasable', 'Accéder au bac à sable', 30
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'unicaenegracon';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('unicaenegraconpays', 'Egracon - Gestion des pays', 10100, 'UnicaenEgracon\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'unicaenegraconpays_index', 'Accéder à l''index', 10 UNION
        SELECT 'unicaenegraconpays_afficher', 'Afficher', 20 UNION
        SELECT 'unicaenegraconpays_ajouter', 'Ajouter', 30 UNION
        SELECT 'unicaenegraconpays_modifier', 'Modifier', 40 UNION
        SELECT 'unicaenegraconpays_supprimer', 'Supprimer', 50
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'unicaenegraconpays';
    
    INSERT INTO unicaen_privilege_categorie (code, libelle, ordre, namespace)
    VALUES ('unicaenegraconnote', 'Egracon - Gestion des notes', 10200, 'UnicaenEgracon\Provider\Privilege');
    INSERT INTO unicaen_privilege_privilege(CATEGORIE_ID, CODE, LIBELLE, ORDRE)
    WITH d(code, lib, ordre) AS (
        SELECT 'unicaenegraconnote_index', 'Accéder à l''index', 10 UNION
        SELECT 'unicaenegraconnote_afficher', 'Afficher', 20 UNION
        SELECT 'unicaenegraconnote_ajouter', 'Ajouter', 30 UNION
        SELECT 'unicaenegraconnote_modifier', 'Modifier', 40 UNION
        SELECT 'unicaenegraconnote_supprimer', 'Supprimer', 50
    )
    SELECT cp.id, d.code, d.lib, d.ordre
    FROM d
    JOIN unicaen_privilege_categorie cp ON cp.CODE = 'unicaenegraconnote';