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 ''; + if (($_GET['action'] != 'editconditions') && ($user->societe_id > 0)) print ''; print '
'; print $langs->trans('PaymentConditions'); print ''; - if ($_GET['action'] != 'editconditions') print 'id.'">'.img_edit($langs->trans('SetConditions'),1).'id.'">'.img_edit($langs->trans('SetConditions'),1).'
'; print ''; if ($_GET['action'] == 'editconditions') @@ -266,7 +266,7 @@ if ($socidp > 0) print ''; + if (($_GET['action'] != 'editmode') && ($user->societe_id > 0)) print ''; print '
'; print $langs->trans('PaymentMode'); print ''; - if ($_GET['action'] != 'editmode') print 'id.'">'.img_edit($langs->trans('SetMode'),1).'id.'">'.img_edit($langs->trans('SetMode'),1).'
'; print ''; if ($_GET['action'] == 'editmode') @@ -285,7 +285,10 @@ if ($socidp > 0) print '
'; print $langs->trans("CustomerRelativeDiscountShort"); print ''; - print ''.img_edit($langs->trans("Modify")).''; + if ($user->societe_id > 0) + { + print ''.img_edit($langs->trans("Modify")).''; + } 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 $langs->trans("PriceLevel"); print ''; - print ''.img_edit($langs->trans("Modify")).''; + if ($user->societe_id > 0) + { + print ''.img_edit($langs->trans("Modify")).''; + } print '
'; print ''.$objsoc->price_level.""; print ''; @@ -327,7 +336,10 @@ if ($socidp > 0) print '
'; print $langs->trans("DeliveriesAddress"); print ''; - print ''.img_edit($langs->trans("Modify")).''; + if ($user->societe_id > 0) + { + print ''.img_edit($langs->trans("Modify")).''; + } 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").'';