From 576c7015465bc5c1a562817c20135c484ee3d380 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 2 Dec 2005 12:44:17 +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/compta/fiche.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index 6e7cb3e86bb..4a247a4144a 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -427,7 +427,10 @@ if ($socid > 0) } } - print "".$langs->trans("AddContact").""; + if ($user->rights->societe->contact->creer) + { + print "".$langs->trans("AddContact").""; + } print ''; print "
\n"; @@ -497,7 +500,12 @@ if ($socid > 0) print ''.$obj->email.' '; print ''; - print "idp\">"; + + if ($user->rights->societe->contact->creer) + { + print "idp\">"; + } + print img_edit(); print '';