Commit 1f4c9583 authored by Thomas Hamel's avatar Thomas Hamel
Browse files

[FIX] Bouton Forçage inaccessible (sur la fiche de la thèse) si la thèse n'était plus en cours

parent b9045e9a
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ Journal des modifications

9.2.1
-----
- [FIX] Bouton Forçage inaccessible (sur la fiche de la thèse) si la thèse n'était plus en cours
- [FIX] Module Admission : Notifications non reçues 
- [FIX] Modification d'une formation impossible 
- [FIX] Certaines méthodes n'étaient pas présentes dans AdmissionEtudiantTemplateVariable
+2 −0
Changes for module/Depot/src/Depot/Assertion/These/TheseAssertion.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -77,6 +77,8 @@ class TheseAssertion extends AbstractAssertion
                return ! $this->isAllowed(new WfEtapeResource(WfEtape::CODE_DEPOT_VERSION_ORIGINALE_CORRIGEE, $these));
            case $privilege === ValidationPrivileges::THESE_VALIDATION_RDV_BU:
                return $this->isAllowed(new WfEtapeResource(WfEtape::CODE_RDV_BU_VALIDATION_BU, $these));
            case $privilege === DepotPrivileges::THESE_SAISIE_CORREC_AUTORISEE_FORCEE:
                return $this->theseEntityAssertion->isStructureDuRoleRespectee();
        }

        return true;
+1 −1
Changes for module/Depot/src/Depot/Assertion/These/TheseEntityAssertion.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class TheseEntityAssertion extends GeneratedTheseEntityAssertion
        return true;
    }

    protected function isStructureDuRoleRespectee(): bool
    public function isStructureDuRoleRespectee(): bool
    {
        return $this->userContextService->isStructureDuRoleRespecteeForThese($this->these);
    }
+1 −1
Changes for module/These/view/these/these/identite.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -318,7 +318,7 @@ switch ($these->getEtatThese()){
                    <dd class="col-md-9 <?php echo $class ?>">
                        <p>
                            <?php echo $reponse ?>
                            <?php if ($canEditForcageCorrectionAutorisee && $canEditThese): ?>
                            <?php if ($canEditForcageCorrectionAutorisee): ?>
                                <?php if ($these->isCorrectionAutoriseeForcee()): ?>
                                    <em>Cette valeur est forcée.</em>
                                <?php endif ?>