diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index ea85ac448d1..1871386ee99 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -3169,7 +3169,7 @@ abstract class CommonObject global $langs, $conf, $user; if (! empty($user->societe_id)) return; - + if (! $user->rights->margins->liretous) return; $marginInfo = $this->getMarginInfos($force_price); @@ -3223,5 +3223,4 @@ abstract class CommonObject print ''; } } -?> - +?> \ No newline at end of file