diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 567c1db6cd4..720154d54d2 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2842,7 +2842,7 @@ else $filename=sanitize_string($fac->ref); $filedir=$conf->facture->dir_output . '/' . sanitize_string($fac->ref); $urlsource=$_SERVER['PHP_SELF'].'?facid='.$fac->id; - $genallowed=($fac->statut >= 1 && $user->rights->facture->creer); + $genallowed=$user->rights->facture->creer; $delallowed=$user->rights->facture->supprimer; $var=true;