Commit 2f88bf8a authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Correction prise en compte des rôles

parent 4f3c3a34
Loading
Loading
Loading
Loading
+2
Changes for module/Application/src/Application/Entity/Db/Role.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@ class Role extends AbstractRole

    const CODE_DOCTORANT = 'DOCTORANT';
    const CODE_ADMIN = 'ADMIN';
    const CODE_BU = 'BU';
    const CODE_BDD = 'BDD';

    const CODE_DIRECTEUR_THESE = 'D';
    const CODE_MEMBRE_JURY = 'M';
+3 −3
Changes for module/Application/src/Application/Service/UserContextService.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ class UserContextService extends BaseUserContextService implements IndividuServi
     */
    public function getSelectedRoleDoctorant()
    {
        return $this->_getSelectedRoleForRoleId(Role::ROLE_ID_DOCTORANT);
        return $this->_getSelectedRoleForCode(Role::CODE_DOCTORANT);
    }

    /**
@@ -86,7 +86,7 @@ class UserContextService extends BaseUserContextService implements IndividuServi
     */
    public function getSelectedRoleBDD()
    {
        return $this->_getSelectedRoleForRoleId(Role::ROLE_ID_BUREAU_DES_DOCTORATS);
        return $this->_getSelectedRoleForCode(Role::CODE_BDD);
    }

    /**
@@ -94,7 +94,7 @@ class UserContextService extends BaseUserContextService implements IndividuServi
     */
    public function getSelectedRoleBU()
    {
        return $this->_getSelectedRoleForRoleId(Role::ROLE_ID_BIBLIO_UNIV);
        return $this->_getSelectedRoleForCode(Role::CODE_BU);
    }

    /**