go("SELECT b_pubblicita_legale.codice, b_pubblicita_legale.modulo, b_pubblicita_legale.codice_elemento, b_pubblicita_legale.sub FROM b_pubblicita_legale WHERE b_pubblicita_legale.codice = :codice",[":codice"=>$sourceID]); if ($richieste->rowCount() > 0) { $richieste = $richieste->fetch(PDO::FETCH_ASSOC); $manager = new pubblicitaLegale($richieste["modulo"],$richieste["codice_elemento"],$richieste["sub"]); if (!empty($manager)) { if ($_SESSION["utente"]->gerarchia < 100) { if ($manager->checkAdminPermission()) { $return = true; } } else { $richiesta = $manager->getOE(["codice"=>$richieste["codice"]],$_SESSION["utente"]->oe["codice"]); if (!empty($richiesta)) { $return = true; } } } } } ?>