Loading module/Application/src/Application/Service/These/TheseRechercheService.php +9 −9 Changes for module/Application/src/Application/Service/These/TheseRechercheService.php: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -508,15 +508,15 @@ class TheseRechercheService private function fetchEtablissementsOptions() { $role = $this->getSelectedIdentityRole(); $privilege = StructurePrivileges::STRUCTURE_CONSULTATION_TOUTES_STRUCTURES; $toutesStructuresAllowed = $this->authorizeService->isAllowed(StructurePrivileges::getResourceId($privilege)); if ($role && !$toutesStructuresAllowed) { return [ $this->optionify($role->getStructure()->getEtablissement()) ]; } // $role = $this->getSelectedIdentityRole(); // // $privilege = StructurePrivileges::STRUCTURE_CONSULTATION_TOUTES_STRUCTURES; // $toutesStructuresAllowed = $this->authorizeService->isAllowed(StructurePrivileges::getResourceId($privilege)); // if ($role && !$toutesStructuresAllowed) { // return [ // $this->optionify($role->getStructure()->getEtablissement()) // ]; // } $etablissements = $this->getEtablissementService()->getRepository()->findAllEtablissementsMembres(); Loading Loading
module/Application/src/Application/Service/These/TheseRechercheService.php +9 −9 Changes for module/Application/src/Application/Service/These/TheseRechercheService.php: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -508,15 +508,15 @@ class TheseRechercheService private function fetchEtablissementsOptions() { $role = $this->getSelectedIdentityRole(); $privilege = StructurePrivileges::STRUCTURE_CONSULTATION_TOUTES_STRUCTURES; $toutesStructuresAllowed = $this->authorizeService->isAllowed(StructurePrivileges::getResourceId($privilege)); if ($role && !$toutesStructuresAllowed) { return [ $this->optionify($role->getStructure()->getEtablissement()) ]; } // $role = $this->getSelectedIdentityRole(); // // $privilege = StructurePrivileges::STRUCTURE_CONSULTATION_TOUTES_STRUCTURES; // $toutesStructuresAllowed = $this->authorizeService->isAllowed(StructurePrivileges::getResourceId($privilege)); // if ($role && !$toutesStructuresAllowed) { // return [ // $this->optionify($role->getStructure()->getEtablissement()) // ]; // } $etablissements = $this->getEtablissementService()->getRepository()->findAllEtablissementsMembres(); Loading