permission($cmd_info["modulo_riferimento"]) && $_SESSION["utente"]->permission($radice, $_POST["codice_elemento"], $id_modulo)) { $gara = gara::init($_POST["codice_elemento"]); $lock = $gara->checkLock($cmd_info["id"]); if (!empty($gara) && !$lock) { try { $gara->sorteggiaInvitati($_POST["managerToken"],$_POST["sub_elemento"],$_POST["numero_partecipanti"], $_POST["descrizione"],$_POST["esclusioni"] ?? []); } catch (\Throwable $th) { $errore = $th->getMessage(); } $error = false; if (empty($errore)) { ?> window.location.reload(); swal({title:"",html:"",type:"error"});