diff --git a/htdocs/telephonie/client/tarifs.php b/htdocs/telephonie/client/tarifs.php index e9684e06fb1..f252b3a686c 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') {