Ajout de permissions
This commit is contained in:
parent
4dce822f8f
commit
6d67911799
@ -315,7 +315,7 @@ if ($_GET["id"] || $_GET["ref"])
|
||||
|
||||
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.'&action=add_price">';
|
||||
print $langs->trans("AddSupplier").'</a>';
|
||||
|
||||
@ -402,12 +402,12 @@ print "<div class=\"tabsAction\">\n";
|
||||
|
||||
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.'&action=transfert">Transfert</a>';
|
||||
}
|
||||
|
||||
if (!$user->rights->stock->creer)
|
||||
if ($user->rights->stock->creer)
|
||||
{
|
||||
print '<a class="tabAction" href="product.php?id='.$product->id.'&action=correction">Correction stock</a>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user