Commit 929147d6 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Retrait d'oubli de complement

parent 92b74926
Loading
Loading
Loading
Loading
−3
Changes for module/Application/src/Application/Service/Agent/AgentServiceFactory.php: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -24,14 +24,12 @@ class AgentServiceFactory {
        /**
         * @var EntityManager $entityManager
         * @var AgentAffectationService $agentAffectationService
         * @var ComplementService $complementService
         * @var ParametreService $parametreService
         * @var StructureService $structureService
         * @var UserService $userService
         */
        $entityManager = $container->get('doctrine.entitymanager.orm_default');
        $agentAffectationService = $container->get(AgentAffectationService::class);
        $complementService = $container->get(ComplementService::class);
        $parametreService = $container->get(ParametreService::class);
        $structureService = $container->get(StructureService::class);
        $userService = $container->get(UserService::class);
@@ -40,7 +38,6 @@ class AgentServiceFactory {
        $service = new AgentService();
        $service->setEntityManager($entityManager);
        $service->setAgentAffectationService($agentAffectationService);
        $service->setComplementService($complementService);
        $service->setParametreService($parametreService);
        $service->setStructureService($structureService);
        $service->setUserService($userService);
−16
Changes for module/Structure/view/structure/structure/partial/agents.phtml: 0 added lines, 16 removed lines.
Original line number Diff line number Diff line
@@ -21,10 +21,6 @@ $canVoirAgent = $this->isAllowed(AgentPrivileges::getResourceId(AgentPrivileges:
$canAjouterAgentForce       = $this->isAllowed($structure, StructurePrivileges::STRUCTURE_AGENT_FORCE);
$canRetirerAgentForce       = $canAjouterAgentForce;

$canComplement              =
    $this->isAllowed(StructurePrivileges::getResourceId(StructurePrivileges::STRUCTURE_COMPLEMENT_AGENT))
    AND $this->isAllowed($structure,StructurePrivileges::STRUCTURE_COMPLEMENT_AGENT);

$isForce = (isset($options['force']) AND $options['force'] === true);

?>
@@ -92,12 +88,6 @@ $isForce = (isset($options['force']) AND $options['force'] === true);
                        echo $asString;
                    ?>
                <?php endif; ?>
<!--                --><?php //if ($canComplement) : ?>
<!--                    --><?php ///** @see \Application\Controller\ComplementController::ajouterAction() */ ?>
<!--                    <a href="--><?php //echo $this->url('complement/ajouter', ['type' => Complement::COMPLEMENT_TYPE_RESPONSABLE, 'attachmenttype' => Agent::class, 'attachmentid' => $agent->getId()], [], true); ?><!--" class="ajax-modal" data-event="modification">-->
<!--                        <span class="icon icon-ajouter"></span> Ajouter un&middot;e supérieur&middot;e-->
<!--                    </a>-->
<!--                --><?php //endif; ?>
            </td>
            <td> <!-- AUTORITE HIERARCHIQUE --------------------------------------------------------------------------->
                <?php $autorites = $agent->getAutorites(); ?>
@@ -115,12 +105,6 @@ $isForce = (isset($options['force']) AND $options['force'] === true);
                        echo $asString;
                    ?>
                <?php endif; ?>
<!--                --><?php //if ($canComplement) : ?>
<!--                    --><?php ///** @see \Application\Controller\ComplementController::ajouterAction() */ ?>
<!--                    <a href="--><?php //echo $this->url('complement/ajouter', ['type' => Complement::COMPLEMENT_TYPE_AUTORITE, 'attachmenttype' => Agent::class, 'attachmentid' => $agent->getId()], [], true); ?><!--" class="ajax-modal" data-event="modification">-->
<!--                        <span class="icon icon-ajouter"></span> Ajouter un&middot;e supérieur&middot;e-->
<!--                    </a>-->
<!--                --><?php //endif; ?>
            </td>
            <td>
                <?php if ($canVoirAgent) : ?>