Commit e80e9677 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Correction sur auto validation du service prévisionnel (#41514)

parent b422c027
Loading
Loading
Loading
Loading
+2 −4
Changes for module/Application/src/Service/VolumeHoraireService.php: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -108,13 +108,11 @@ class VolumeHoraireService extends AbstractEntityService
        if (!$entity->getSourceCode()) {
            $entity->setSourceCode(uniqid('ose-'));
        }

        if (!$entity->getId()) {
        $canAutoValidate = $this->getAuthorize()->isAllowed($entity, Privileges::ENSEIGNEMENT_AUTOVALIDATION);

        if ($canAutoValidate) $entity->setAutoValidation(true);
        }

        return parent::save($entity); // TODO: Change the autogenerated stub
        return parent::save($entity);
    }