Skip to content

Commit

Permalink
FIX #5134
Browse files Browse the repository at this point in the history
  • Loading branch information
aschio committed Jun 4, 2016
1 parent e1c2721 commit 9ac05fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/product/card.php
Expand Up @@ -1730,7 +1730,8 @@
{
if ($action == '' || $action == 'view')
{
if ($user->rights->produit->creer || $user->rights->service->creer)
if (($object->type == Product::TYPE_PRODUCT && $user->rights->produit->creer ) ||
($object->type == Product::TYPE_SERVICE && $user->rights->service->creer))
{
if (! isset($object->no_button_edit) || $object->no_button_edit <> 1) print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER["PHP_SELF"].'?action=edit&amp;id='.$object->id.'">'.$langs->trans("Modify").'</a></div>';

Expand Down

0 comments on commit 9ac05fa

Please sign in to comment.