diff --git a/gamutable_autorisations.php b/gamutable_autorisations.php index 1c3b6df..8d70d53 100644 --- a/gamutable_autorisations.php +++ b/gamutable_autorisations.php @@ -25,7 +25,10 @@ function autoriser_gamutable_purger_dist($faire, $type, $id, $qui, $opt) { } function autoriser_gamutablepdf_generer_dist($faire, $type, $id, $qui, $opt) { - return intval($qui['id_auteur']); + if (intval($qui['id_auteur'])) { + return true; + }; + return false; } function autoriser_gamutable_modifier_dist($faire, $type, $id, $qui, $opt) {