Ajout de permissions

This commit is contained in:
Regis Houssin 2005-12-07 15:24:14 +00:00
parent 4dce822f8f
commit 6d67911799
2 changed files with 3 additions and 3 deletions

View File

@ -315,7 +315,7 @@ if ($_GET["id"] || $_GET["ref"])
if ($_GET["action"] != 'add_price') { if ($_GET["action"] != 'add_price') {
if (!$user->rights->produit->creer) if ($user->rights->produit->creer)
{ {
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/product/fournisseurs.php?id='.$product->id.'&amp;action=add_price">'; print '<a class="tabAction" href="'.DOL_URL_ROOT.'/product/fournisseurs.php?id='.$product->id.'&amp;action=add_price">';
print $langs->trans("AddSupplier").'</a>'; print $langs->trans("AddSupplier").'</a>';

View File

@ -402,12 +402,12 @@ print "<div class=\"tabsAction\">\n";
if ($_GET["action"] == '' ) if ($_GET["action"] == '' )
{ {
if (!$user->rights->stock->mouvement->creer) if ($user->rights->stock->mouvement->creer)
{ {
print '<a class="tabAction" href="product.php?id='.$product->id.'&amp;action=transfert">Transfert</a>'; print '<a class="tabAction" href="product.php?id='.$product->id.'&amp;action=transfert">Transfert</a>';
} }
if (!$user->rights->stock->creer) if ($user->rights->stock->creer)
{ {
print '<a class="tabAction" href="product.php?id='.$product->id.'&amp;action=correction">Correction stock</a>'; print '<a class="tabAction" href="product.php?id='.$product->id.'&amp;action=correction">Correction stock</a>';
} }