correctif mastersubmit tailly
This commit is contained in:
parent
138a83e8de
commit
ca50af72a1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user