Update card.php
This commit is contained in:
parent
7f308bf9b5
commit
99dde1ad1e
@ -1420,7 +1420,7 @@ else
|
||||
|
||||
// Status (to sell)
|
||||
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');
|
||||
} else {
|
||||
print $object->getLibStatut(2,0);
|
||||
@ -1429,7 +1429,7 @@ else
|
||||
|
||||
// Status (to buy)
|
||||
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');
|
||||
} else {
|
||||
print $object->getLibStatut(2,1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user