Update card.php
This commit is contained in:
parent
7f308bf9b5
commit
99dde1ad1e
@ -1420,7 +1420,7 @@ else
|
|||||||
|
|
||||||
// Status (to sell)
|
// Status (to sell)
|
||||||
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Sell").')</td><td colspan="2">';
|
||||||
if (! empty($conf->use_javascript_ajax)) {
|
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
|
||||||
print ajax_productonoff($object->id, 'status');
|
print ajax_productonoff($object->id, 'status');
|
||||||
} else {
|
} else {
|
||||||
print $object->getLibStatut(2,0);
|
print $object->getLibStatut(2,0);
|
||||||
@ -1429,7 +1429,7 @@ else
|
|||||||
|
|
||||||
// Status (to buy)
|
// Status (to buy)
|
||||||
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')</td><td colspan="2">';
|
print '<tr><td>'.$langs->trans("Status").' ('.$langs->trans("Buy").')</td><td colspan="2">';
|
||||||
if (! empty($conf->use_javascript_ajax)) {
|
if (! empty($conf->use_javascript_ajax) && $user->rights->produit->creer) {
|
||||||
print ajax_productonoff($object->id, 'status_buy');
|
print ajax_productonoff($object->id, 'status_buy');
|
||||||
} else {
|
} else {
|
||||||
print $object->getLibStatut(2,1);
|
print $object->getLibStatut(2,1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user