permission($cmd_info["modulo_riferimento"]) && $_SESSION["utente"]->permission($radice,$_POST["codice_gara"],$id_modulo)) { $gara = gara::init($_POST["codice_gara"]); $lock = $gara->checkLock($cmd_info["id"]); if (!empty($gara) && !$lock) { $estrazione = oeManager::getEstrazione("gare",$_POST["codice_gara"],$_POST["codice_lotto"]); if (!empty($_POST["codice_lotto"])) { $estrazioneGenerale = oeManager::getEstrazione("gare",$_POST["codice_gara"],"0"); } if (empty($estrazione) && empty($estrazioneGenerale)) { $pec = $_POST["pec"]; $ragione_sociale = $_POST["ragione_sociale"]; $codice_fiscale = $_POST["codice_fiscale"]; $codice_lotto = $_POST["codice_lotto"]; $codice_oe = oeManager::getIdFromPEC($pec); $error = false; // Se esiste già, chiamiamo save.php if(!empty($codice_oe)) { $gara->inviteOE([$codice_oe], $codice_lotto, null, false); } else { $new_user = true; $idTemp = $gara->saveTempInvito($codice_lotto,$codice_fiscale,$ragione_sociale,$pec); if (!empty($idTemp)) { if ($gara->info["stato"] >= 20) { $gara->inviaInvito([$pec]); } } else { ?> swal({title:"",html:"",type:"error"}); swal({title:"",html:"",type:"error"}); //swal({title:"",html:"",type:"success"});