From 6c9dc8aabfd34e57b4105e9fad432c39c50f68bb Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 2 Sep 2005 11:30:37 +0000 Subject: [PATCH] Modif permissions --- htdocs/telephonie/ca/ratiofourn.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/telephonie/ca/ratiofourn.php b/htdocs/telephonie/ca/ratiofourn.php index 7bec33019ac..ee3a3335289 100644 --- a/htdocs/telephonie/ca/ratiofourn.php +++ b/htdocs/telephonie/ca/ratiofourn.php @@ -25,8 +25,7 @@ require("./pre.inc.php"); * Sécurité accés client */ -if (!$user->rights->telephonie->lire) accessforbidden(); -if ($user->societe_id > 0) accessforbidden(); +if (!$user->rights->telephonie->ca->lire) accessforbidden(); llxHeader('','Telephonie - Ratio fournisseur'); @@ -66,7 +65,7 @@ if ($resql) while ($i < min($num,$conf->liste_limit)) { - $row = $db->fetch_row($i); + $row = $db->fetch_row($resql); $var=!$var; print ""; @@ -78,7 +77,7 @@ if ($resql) $i++; } print ""; - $db->free(); + $db->free($resql); } else {