From 99dde1ad1e1c8c81842874978f7895fe230ae833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 12 Oct 2014 20:44:50 +0200 Subject: [PATCH] Update card.php --- htdocs/product/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 0f374dc2b3a..5644e41df1c 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1420,7 +1420,7 @@ else // Status (to sell) print ''.$langs->trans("Status").' ('.$langs->trans("Sell").')'; - if (! empty($conf->use_javascript_ajax)) { + if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) { print ajax_productonoff($object->id, 'status'); } else { print $object->getLibStatut(2,0); @@ -1429,7 +1429,7 @@ else // Status (to buy) print ''.$langs->trans("Status").' ('.$langs->trans("Buy").')'; - if (! empty($conf->use_javascript_ajax)) { + if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) { print ajax_productonoff($object->id, 'status_buy'); } else { print $object->getLibStatut(2,1);