From 415deb1500069a330fe848c8fe37453b9f3fa80e Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Sun, 4 Oct 2020 14:27:03 +0200 Subject: [PATCH] Fix display stock rights in takepos only display if user have read right --- htdocs/takepos/invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index d3ec86a7268..beeac65403a 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -1067,7 +1067,7 @@ if ($placeid > 0) $htmlforlines .= ''; $htmlforlines .= ''.vatrate($line->remise_percent, true).''; $htmlforlines .= ''; - if (!empty($conf->stock->enabled)) + if (!empty($conf->stock->enabled) && !empty($user->rights->stock->mouvement->lire)) { $constantforkey = 'CASHDESK_ID_WAREHOUSE'.$_SESSION["takeposterminal"]; $sql = "SELECT e.rowid, e.ref, e.lieu, e.fk_parent, e.statut, ps.reel, ps.rowid as product_stock_id, p.pmp";