Modif permissions

This commit is contained in:
Rodolphe Quiedeville 2005-09-02 11:30:37 +00:00
parent a86d167048
commit 6c9dc8aabf

View File

@ -25,8 +25,7 @@ require("./pre.inc.php");
* Sécurité accés client * Sécurité accés client
*/ */
if (!$user->rights->telephonie->lire) accessforbidden(); if (!$user->rights->telephonie->ca->lire) accessforbidden();
if ($user->societe_id > 0) accessforbidden();
llxHeader('','Telephonie - Ratio fournisseur'); llxHeader('','Telephonie - Ratio fournisseur');
@ -66,7 +65,7 @@ if ($resql)
while ($i < min($num,$conf->liste_limit)) while ($i < min($num,$conf->liste_limit))
{ {
$row = $db->fetch_row($i); $row = $db->fetch_row($resql);
$var=!$var; $var=!$var;
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
@ -78,7 +77,7 @@ if ($resql)
$i++; $i++;
} }
print "</table>"; print "</table>";
$db->free(); $db->free($resql);
} }
else else
{ {