From ffd978bf4e50c0f5615bc8cfb0f03efb83815728 Mon Sep 17 00:00:00 2001 From: Wilmer Date: Tue, 9 May 2017 09:01:31 -0400 Subject: [PATCH] =?UTF-8?q?no=20deja=20enviar=20la=20nueva=20escala=20hast?= =?UTF-8?q?a=20que=20primero=20suba=20la=20resoluci=C3=B3n=20de=20aprobaci?= =?UTF-8?q?=C3=B3n=20de=20jurados=20para=20la=20defensa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppBundle/Controller/AscensoController.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/AppBundle/Controller/AscensoController.php b/src/AppBundle/Controller/AscensoController.php index 6f91d51..7955561 100644 --- a/src/AppBundle/Controller/AscensoController.php +++ b/src/AppBundle/Controller/AscensoController.php @@ -369,6 +369,17 @@ class AscensoController extends Controller $this->addFlash('danger', 'Debe tener una solicitud de Ascenso Activa para poder utilizar este servicio'); return $this->redirect($this->generateUrl('cea_index')); } + + $acta = $this->getDoctrine()->getRepository("AppBundle:DocenteServicio")->findOneBy(array( + 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), + 'idServicioCe' => 7, + 'idEstatus' => 1 + )); + + if (!$acta){ + $this->addFlash('danger', 'Debe enviar primero su acta de aprobación de jurados para poder defender y subir su nuevo escalafón'); + return $this->redirect($this->generateUrl('cea_index')); + } $concurso = $this->getDoctrine()->getRepository('AppBundle:DocumentosVerificados')->findOneBy(array( 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), -- 2.0.0