This commit is contained in:
Julio Cesar Laura Avendaño
2016-03-30 18:04:57 -04:00
parent e4cf9a2a66
commit db8c3ddc18

View File

@@ -835,6 +835,13 @@ class Light extends Api
{ {
try { try {
$oCase = new \Cases(); $oCase = new \Cases();
$oAppDelegate = new \AppDelegation();
$alreadyRouted = $oAppDelegate->alreadyRouted($app_uid, $cas_index);
if ($alreadyRouted) {
throw (new RestException(Api::STAT_APP_EXCEPTION, G::LoadTranslation('ID_CASE_DELEGATION_ALREADY_CLOSED')));
}
$userUid = $this->getUserId(); $userUid = $this->getUserId();
$_SESSION["APPLICATION"] = $app_uid; $_SESSION["APPLICATION"] = $app_uid;
$_SESSION["PROCESS"] = $pro_uid; $_SESSION["PROCESS"] = $pro_uid;