From ad45690570fbd25fe8ce14a0a6526e7ecd753cd2 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Fri, 2 Dec 2005 11:55:43 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20permissions=20sur=20cr=E9ation=20et=20s?= =?UTF-8?q?uppression=20des=20contacts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contact/perso.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php index 4edcca3ce43..e6517cc12c7 100644 --- a/htdocs/contact/perso.php +++ b/htdocs/contact/perso.php @@ -203,8 +203,11 @@ else if ($user->societe_id == 0) { print '<div class="tabsAction">'; - - print '<a class="butAction" href="perso.php?id='.$_GET["id"].'&action=edit">'.$langs->trans('Edit').'</a>'; + + if ($user->rights->societe->contact->creer) + { + print '<a class="butAction" href="perso.php?id='.$_GET["id"].'&action=edit">'.$langs->trans('Edit').'</a>'; + } print "</div>"; } -- GitLab