diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index da36cf4af04..242b1d0b7bb 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -247,7 +247,7 @@ if ($socidp > 0)
print '
';
print '';
if ($_GET['action'] == 'editconditions')
@@ -266,7 +266,7 @@ if ($socidp > 0)
print '';
print ' | ';
if ($_GET['action'] == 'editmode')
@@ -285,7 +285,10 @@ if ($socidp > 0)
print '';
print ' | '.($objsoc->remise_client?$objsoc->remise_client.'%':$langs->trans("DiscountNone")).' | ';
print '';
@@ -296,7 +299,10 @@ if ($socidp > 0)
print '| ';
print $langs->trans("CustomerAbsoluteDiscountShort");
print ' | | ';
- print ''.img_edit($langs->trans("Modify")).'';
+ if ($user->societe_id > 0)
+ {
+ print ''.img_edit($langs->trans("Modify")).'';
+ }
print ' |
';
print '';
print '';
@@ -314,7 +320,10 @@ if ($socidp > 0)
print '';
print ' | '.$objsoc->price_level." | ";
print '';
@@ -327,7 +336,10 @@ if ($socidp > 0)
print '';
print '';
@@ -631,7 +643,7 @@ if ($socidp > 0)
print ''.$langs->trans("AddContract").'';
}
- if ($conf->fichinter->enabled)
+ if ($conf->fichinter->enabled && $user->rights->ficheinter->creer)
{
$langs->load("fichinter");
print ''.$langs->trans("AddIntervention").'';
|