Skip to content
Snippets Groups Projects
Select Git revision
  • 087d4b95344925f73dd8729a7f69ed43df48c1cf
  • master default protected
  • main
  • update_github_actions
  • 144_rocky8_support
  • 195-update-pdk-to-300
  • 144-rocky8
  • add_test_github_test_workflow
  • pdk_2.4.0
  • fix_unclosed_let_block_in_defines_client_spec
  • validation_fixes
  • freeradius_3_0_21_config_updates
  • data_types
  • PrepareBuster
  • travis
  • 4.0.1
  • 4.0.0
  • 3.9.2
  • 3.9.1
  • 3.9.0
  • 3.8.2
  • 3.8.1
  • 3.8.0
  • 3.7.0
  • 3.6.0
  • 3.5.0
  • 3.4.3
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.3.1
35 results

files.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';