diff --git a/src/ninebadge-1.0/src/Controller/TallydayController.php b/src/ninebadge-1.0/src/Controller/TallydayController.php index 43b1701..c42363a 100755 --- a/src/ninebadge-1.0/src/Controller/TallydayController.php +++ b/src/ninebadge-1.0/src/Controller/TallydayController.php @@ -278,7 +278,7 @@ class TallydayController extends AbstractController if(!$user) return $this->redirectToRoute("app_tallyday_masterlist"); // Pas normal = on ne peut créer une donnée sur une journée déjà validé par master - $isvalidemaster= $em->getRepository($this->entity)->findOneBy(["user"=>$this->getUser(),"dateof"=>$dateof,"validatemaster"=>true]); + $isvalidemaster= $em->getRepository($this->entity)->findOneBy(["user"=>$user,"dateof"=>$dateof,"validatemaster"=>true]); if($isvalidemaster) return $this->redirectToRoute("app_tallyday_masterlist"); return $this->submit($user,$dateof,"master",$request);