diff --git a/htdocs/telephonie/client/tarifs.php b/htdocs/telephonie/client/tarifs.php index f218da654a7..e9684e06fb1 100644 --- a/htdocs/telephonie/client/tarifs.php +++ b/htdocs/telephonie/client/tarifs.php @@ -25,7 +25,7 @@ require("./pre.inc.php"); $message_erreur = ''; -if ($_POST["action"] == 'addtarif') +if ($_POST["action"] == 'addtarif' && $user->rights->telephonie->tarif->client_modifier) { $error = 0; $saisieok = 1; @@ -134,7 +134,7 @@ if ($_GET["special"] == 'done') } */ -if ($_GET["action"] == 'delete') +if ($_GET["action"] == 'delete' && $user->rights->telephonie->tarif->client_modifier) { if (strlen(trim($_GET["tid"])) > 0) @@ -208,16 +208,11 @@ if ($_GET["id"]) print '