From 6d2c27beec5372dc6f7b7f32abb267a2d81e1ef8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Aug 2013 22:09:32 +0200 Subject: [PATCH] Fix: header already sent --- htdocs/core/class/commonobject.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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