permission($radice,$_POST["codice"])) { global $config; $changelog_writer = new Changelog(); $changelog_writer->configuration = Changelog::arrayToObject($config); if ($changelog_writer->delete($_SESSION["ente"]->codice ?? null, $_POST["codice"])) { scriviLog( empty($_SESSION["ente"]) ? $changelog_writer->configuration->db_name . Changelog::MAIN_CHANGELOG_TABLE : $changelog_writer->configuration->tenant_db_prefix . $_SESSION["ente"]->codice . Changelog::TENANT_CHANGELOG_TABLE, "DELETE", $pdo->getSQL(), $_POST["codice"] ); ?>window.location.href="/backend/changelogs/"