Commit 5594ddc1 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Le menu Nos Thèses s'affichait à tort pour le rôle Doctorant (du fait...

[FIX] Le menu Nos Thèses s'affichait à tort pour le rôle Doctorant (du fait que ce dernier est désormais tagué établissement-dépendant).
parent 2d9dc8f0
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/Application/Navigation/ApplicationNavigationFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ class ApplicationNavigationFactory extends NavigationFactory
         */
        // Rôles ED, UR, MDD, etc. : génération d'une page "Nos thèses" contenant une page fille indiquant la structure filtrante
        if ($protoPage = $page['pages'][$key = self::NOS_THESES_PAGE_ID] ?? null) {
            if ($this->role !== null && ($this->role->isEcoleDoctoraleDependant() || $this->role->isUniteRechercheDependant() || $this->role->isEtablissementDependant())) {
            if ($this->role !== null && !$this->role->isDoctorant() && ($this->role->isEcoleDoctoraleDependant() || $this->role->isUniteRechercheDependant() || $this->role->isEtablissementDependant())) {
                $newPages = $this->createPageNosTheses($protoPage, $this->role);
                $page['pages'][$key]['pages'] = $newPages;
            } else {