From d7ed2a6d45f74be05206d878f1f90fe9b9e6c521 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 May 2009 02:30:15 +0000 Subject: [PATCH] Fix: Test on wrong permission --- htdocs/facture.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 5b569f844ee..59ef95f7394 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -1232,10 +1232,10 @@ class Facture extends CommonObject return 0; } - if (! $user->rights->commande->valider) + if (! $user->rights->facture->valider) { $this->error='Permission denied'; - dol_syslog("Expedition::valid ".$this->error, LOG_ERR); + dol_syslog("Facture::valid ".$this->error, LOG_ERR); return -1; }