From 6c9b2faee4dc3cc9519ee550915ea983167106fe Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 21 Jul 2005 13:13:41 +0000 Subject: [PATCH] Correction permissions --- htdocs/soc.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index 82deb84c622..43df6dad4d0 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -575,8 +575,10 @@ else print '
'; print $langs->trans('RIB'); print ''; - print ''.img_edit().''; - print '
'; + if ($user->rights->societe->creer) + print ''.img_edit().''; + + print ' '; print ''; print ''; print $soc->display_rib(); @@ -587,8 +589,9 @@ else print '
'; print $langs->trans('ParentCompany'); print ''; - print ''.img_edit() .''; - print '
'; + if ($user->rights->societe->creer) + print ''.img_edit() .''; + print ' '; print ''; print ''; if ($soc->parent) @@ -607,8 +610,9 @@ else print '
'; print $langs->trans('SalesRepresentatives'); print ''; - print ''.img_edit().''; - print '
'; + if ($user->rights->societe->creer) + print ''.img_edit().''; + print ' '; print ''; print '';