Loading doc/release-notes/v6.0.7.md +37 −0 Changes for doc/release-notes/v6.0.7.md: 37 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -295,4 +295,41 @@ BEGIN END $$; -- -- Futurs privilèges Doctorant, pas encore exploités. -- insert into PRIVILEGE(ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) with d(ordre, code, lib) as ( select 30, 'lister-tout', 'Lister tous·tes les doctorant·es' union all select 31, 'lister-sien', 'Lister ses doctorant·es' union all select 40, 'consulter-tout', 'Consulter la fiche détaillée de n''importe quel·le doctorant·e' union all select 41, 'consulter-sien', 'Consulter la fiche détaillée d''un·e de ses doctorant·es' ) select nextval('privilege_id_seq'), cp.id, d.code, d.lib, d.ordre from d join CATEGORIE_PRIVILEGE cp on cp.CODE = 'doctorant'; select privilege__grant_privilege_to_profile('doctorant', 'lister-tout', 'ADMIN_TECH'); select privilege__grant_privilege_to_profile('doctorant', 'lister-tout', 'BDD'); select privilege__grant_privilege_to_profile('doctorant', 'lister-tout', 'BU'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-tout', 'ADMIN_TECH'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-tout', 'BDD'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-tout', 'BU'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'D'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'K'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'GEST_ED'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'GEST_UR'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'RESP_ED'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'RESP_UR'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'D'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'K'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'GEST_ED'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'GEST_UR'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'RESP_ED'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'RESP_UR'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'DOCTORANT'); ``` No newline at end of file module/Doctorant/src/Doctorant/Provider/Privilege/DoctorantPrivileges.php +4 −0 Changes for module/Doctorant/src/Doctorant/Provider/Privilege/DoctorantPrivileges.php: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -6,6 +6,10 @@ use UnicaenAuth\Provider\Privilege\Privileges; class DoctorantPrivileges extends Privileges { const DOCTORANT_LISTER_TOUT = 'doctorant-lister-tout'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_LISTER_SIEN = 'doctorant-lister-sien'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_CONSULTER_TOUT = 'doctorant-consulter-tout'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_CONSULTER_SIEN = 'doctorant-consulter-sien'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_AFFICHER_EMAIL_CONTACT = 'doctorant-afficher-email-contact'; const DOCTORANT_MODIFIER_EMAIL_CONTACT = 'doctorant-modifier-email-contact'; // const DOCTORANT_MODIFIER_EMAIL_CONTACT_CONSENT = 'doctorant-modifier-email-contact-consent'; Loading Loading
doc/release-notes/v6.0.7.md +37 −0 Changes for doc/release-notes/v6.0.7.md: 37 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -295,4 +295,41 @@ BEGIN END $$; -- -- Futurs privilèges Doctorant, pas encore exploités. -- insert into PRIVILEGE(ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) with d(ordre, code, lib) as ( select 30, 'lister-tout', 'Lister tous·tes les doctorant·es' union all select 31, 'lister-sien', 'Lister ses doctorant·es' union all select 40, 'consulter-tout', 'Consulter la fiche détaillée de n''importe quel·le doctorant·e' union all select 41, 'consulter-sien', 'Consulter la fiche détaillée d''un·e de ses doctorant·es' ) select nextval('privilege_id_seq'), cp.id, d.code, d.lib, d.ordre from d join CATEGORIE_PRIVILEGE cp on cp.CODE = 'doctorant'; select privilege__grant_privilege_to_profile('doctorant', 'lister-tout', 'ADMIN_TECH'); select privilege__grant_privilege_to_profile('doctorant', 'lister-tout', 'BDD'); select privilege__grant_privilege_to_profile('doctorant', 'lister-tout', 'BU'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-tout', 'ADMIN_TECH'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-tout', 'BDD'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-tout', 'BU'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'D'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'K'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'GEST_ED'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'GEST_UR'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'RESP_ED'); select privilege__grant_privilege_to_profile('doctorant', 'lister-sien', 'RESP_UR'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'D'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'K'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'GEST_ED'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'GEST_UR'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'RESP_ED'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'RESP_UR'); select privilege__grant_privilege_to_profile('doctorant', 'consulter-sien', 'DOCTORANT'); ``` No newline at end of file
module/Doctorant/src/Doctorant/Provider/Privilege/DoctorantPrivileges.php +4 −0 Changes for module/Doctorant/src/Doctorant/Provider/Privilege/DoctorantPrivileges.php: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -6,6 +6,10 @@ use UnicaenAuth\Provider\Privilege\Privileges; class DoctorantPrivileges extends Privileges { const DOCTORANT_LISTER_TOUT = 'doctorant-lister-tout'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_LISTER_SIEN = 'doctorant-lister-sien'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_CONSULTER_TOUT = 'doctorant-consulter-tout'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_CONSULTER_SIEN = 'doctorant-consulter-sien'; // todo : existe en bdd mais pas encore exploité const DOCTORANT_AFFICHER_EMAIL_CONTACT = 'doctorant-afficher-email-contact'; const DOCTORANT_MODIFIER_EMAIL_CONTACT = 'doctorant-modifier-email-contact'; // const DOCTORANT_MODIFIER_EMAIL_CONTACT_CONSENT = 'doctorant-modifier-email-contact-consent'; Loading