diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index 1a9f6faab84..1b67157381e 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -347,7 +347,13 @@ if ( $societe->fetch($socid) ) print ''.$langs->trans("Contact").''; print 'Poste'.$langs->trans("Tel").''; print "".$langs->trans("Fax")."".$langs->trans("EMail").""; - print "".$langs->trans("AddContact").""; + + if ($user->rights->societe->contact->creer) + { + print "".$langs->trans("AddContact").""; + } + + print ""; $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note"; $sql.= " FROM ".MAIN_DB_PREFIX."socpeople as p"; @@ -373,15 +379,20 @@ if ( $societe->fetch($socid) ) print ' '.$obj->firstname.' '. $obj->name.' '; if ($obj->note) - { - print "
".nl2br($obj->note); - } + { + print "
".nl2br($obj->note); + } print ""; print "$obj->poste "; print ''.$obj->phone.' '; print ''.$obj->fax.' '; print ''.$obj->email.' '; - print "idp\">".img_edit().""; + + if ($user->rights->societe->contact->creer) + { + print "idp\">".img_edit().""; + } + print "\n"; $i++; }