Loading module/Application/src/Application/Service/AgentAutorite/AgentAutoriteService.php +3 −3 Changes for module/Application/src/Application/Service/AgentAutorite/AgentAutoriteService.php: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -206,9 +206,9 @@ class AgentAutoriteService public function isAutorite(Agent $agent, Agent $autorite) : bool { $qb = $this->createQueryBuilder() ->andWhere('agentsuperieur.agent = :agent')->setParameter('agent',$agent) ->andWhere('agentsuperieur.autorite = :autorite')->setParameter('autorite', $autorite) ->andWhere('agentsuperieur.histoDestruction IS NULL') ->andWhere('agentautorite.agent = :agent')->setParameter('agent',$agent) ->andWhere('agentautorite.autorite = :autorite')->setParameter('autorite', $autorite) ->andWhere('agentautorite.histoDestruction IS NULL') ; $result = $qb->getQuery()->getResult(); return !empty($result); Loading module/EntretienProfessionnel/src/EntretienProfessionnel/View/Helper/partial/convocation-array.phtml +5 −2 Changes for module/EntretienProfessionnel/src/EntretienProfessionnel/View/Helper/partial/convocation-array.phtml: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ use Application\Entity\Db\Agent; use Application\Provider\Privilege\AgentPrivileges; use EntretienProfessionnel\Entity\Db\Campagne; use EntretienProfessionnel\Entity\Db\EntretienProfessionnel; use EntretienProfessionnel\Provider\Privilege\EntretienproPrivileges; /** Loading Loading @@ -63,7 +64,7 @@ $canAction = ($canAfficher OR $canConvoquer); </td> <?php if ($canAction) : ?> <td class="action"> <?php if ($canAfficher) : ?> <?php if ($this->isAllowed($agent, AgentPrivileges::AGENT_AFFICHER)) : ?> <?php /** @see \Application\Controller\AgentController::afficherAction() */?> <a href="<?php echo $this->url('agent/afficher', ['agent' => $agent->getId()], [], true); ?>" target="_blank" Loading @@ -72,7 +73,9 @@ $canAction = ($canAfficher OR $canConvoquer); Afficher </a> <?php endif; ?> <?php if ($canConvoquer) : ?> <?php $entretien = new EntretienProfessionnel(); $entretien->setAgent($agent); if ($campagne->estEnCours() AND $this->isAllowed($entretien, EntretienproPrivileges::ENTRETIENPRO_AJOUTER)) : ?> <br> <?php /** @see \EntretienProfessionnel\Controller\EntretienProfessionnelController::creerAction() */?> <a Loading Loading
module/Application/src/Application/Service/AgentAutorite/AgentAutoriteService.php +3 −3 Changes for module/Application/src/Application/Service/AgentAutorite/AgentAutoriteService.php: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -206,9 +206,9 @@ class AgentAutoriteService public function isAutorite(Agent $agent, Agent $autorite) : bool { $qb = $this->createQueryBuilder() ->andWhere('agentsuperieur.agent = :agent')->setParameter('agent',$agent) ->andWhere('agentsuperieur.autorite = :autorite')->setParameter('autorite', $autorite) ->andWhere('agentsuperieur.histoDestruction IS NULL') ->andWhere('agentautorite.agent = :agent')->setParameter('agent',$agent) ->andWhere('agentautorite.autorite = :autorite')->setParameter('autorite', $autorite) ->andWhere('agentautorite.histoDestruction IS NULL') ; $result = $qb->getQuery()->getResult(); return !empty($result); Loading
module/EntretienProfessionnel/src/EntretienProfessionnel/View/Helper/partial/convocation-array.phtml +5 −2 Changes for module/EntretienProfessionnel/src/EntretienProfessionnel/View/Helper/partial/convocation-array.phtml: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ use Application\Entity\Db\Agent; use Application\Provider\Privilege\AgentPrivileges; use EntretienProfessionnel\Entity\Db\Campagne; use EntretienProfessionnel\Entity\Db\EntretienProfessionnel; use EntretienProfessionnel\Provider\Privilege\EntretienproPrivileges; /** Loading Loading @@ -63,7 +64,7 @@ $canAction = ($canAfficher OR $canConvoquer); </td> <?php if ($canAction) : ?> <td class="action"> <?php if ($canAfficher) : ?> <?php if ($this->isAllowed($agent, AgentPrivileges::AGENT_AFFICHER)) : ?> <?php /** @see \Application\Controller\AgentController::afficherAction() */?> <a href="<?php echo $this->url('agent/afficher', ['agent' => $agent->getId()], [], true); ?>" target="_blank" Loading @@ -72,7 +73,9 @@ $canAction = ($canAfficher OR $canConvoquer); Afficher </a> <?php endif; ?> <?php if ($canConvoquer) : ?> <?php $entretien = new EntretienProfessionnel(); $entretien->setAgent($agent); if ($campagne->estEnCours() AND $this->isAllowed($entretien, EntretienproPrivileges::ENTRETIENPRO_AJOUTER)) : ?> <br> <?php /** @see \EntretienProfessionnel\Controller\EntretienProfessionnelController::creerAction() */?> <a Loading