From f6ffc89ee27a2f3854c737f9131a4649bab0cb69 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 2 Sep 2005 14:53:49 +0000 Subject: [PATCH] Modif permissions --- htdocs/telephonie/client/tarifs.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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') {