diff --git a/htdocs/telephonie/client/tarifs.php b/htdocs/telephonie/client/tarifs.php index e9684e06fb1453685acf98b0cf6a7d67435a1d1f..f252b3a686c0687ff88602d0f04624de33ba6674 100644 --- a/htdocs/telephonie/client/tarifs.php +++ b/htdocs/telephonie/client/tarifs.php @@ -165,13 +165,17 @@ if ($cancel == $langs->trans("Cancel")) * */ - if ($_GET["id"]) { $soc = new Societe($db); $result = $soc->fetch($_GET["id"]); - if ( $result == 1 ) + if (!$soc->perm_read) + { + print "Lecture non authoris�e"; + } + + if ( $result == 1 && $soc->perm_read) { if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit') {