permission($cmd_info["modulo_riferimento"],$_POST["codice"],$id_modulo) || (!empty($_POST["valutazione"])) ) && !empty($_POST["codice_round"]) && !empty($_POST["partecipante"]) && !empty($_POST["codice_lotto"]) && !empty($_POST["richiesta"]) && tokenVerify()) { $valutazione = (empty($_POST["valutazione"])) ? NULL : "commissione"; $codice_round = $_POST["codice_round"]; $gara = gara::init($_POST["codice"],$codice_round,$valutazione); if (!empty($gara) && $gara->setLotto($_POST["codice_lotto"])) { $record = $gara->info; $round = $gara->round; if ($gara->checkOpeningPermission($_POST["partecipante"],$_POST["richiesta"])) { $aggiuntive = false; $parent = $gara->getBusta($_POST["partecipante"],$_POST["richiesta"],$aggiuntive,false); if ($parent["open"] == "S") { $busta = $gara->getBustaSecretata($_POST["partecipante"],$_POST["richiesta"],$_POST["derivazione"],true); if (!empty($busta)) { if ($busta["open"] == "S" && $busta["accettata"] != "S") { $richiesta = $pdo->go("SELECT * FROM b_gare_richieste WHERE codice = :richiesta",[":richiesta"=>$busta["codice_richiesta"]])->fetch(PDO::FETCH_ASSOC); if (!empty($richiesta)) { $error = false; $partecipante = $gara->getPartecipante($_POST["partecipante"]); $pdo->go("UPDATE b_gare_buste_secretate SET accettata = 'S', motivazione = '' WHERE codice = :richiesta",[":richiesta"=>$busta["codice"]]); scriviLog("b_gare_buste_secretate","UPDATE",$pdo->getSQL(),$busta["codice"]); $gara->addToLog("ACCETTATO OSCURAMENTO",$richiesta["titolo"] . " " . $partecipante["ragione_sociale"]); ?> swal({title:js_dict["success-msg"],type:"success"}).then(function(){ tabofferte.draw(); backModalHelper(); }); FORBIDDEN"; } else { ?> swal({title:js_dict.error,html:"",type:"error"});