diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 62e6db446c1..001fe03f8d0 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -376,7 +376,7 @@ $listofreferent = array( 'buttonnew'=>'AddWarehouse', 'project_field'=>'fk_project', 'testnew'=>$user->hasRight('stock', 'creer'), - 'test'=>!empty($conf->stock->enabled) && $user->hasRight('stock','lire') && !empty($conf->global->WAREHOUSE_ASK_WAREHOUSE_DURING_PROJECT)), + 'test'=>!empty($conf->stock->enabled) && $user->hasRight('stock', 'lire') && !empty($conf->global->WAREHOUSE_ASK_WAREHOUSE_DURING_PROJECT)), 'propal'=>array( 'name'=>"Proposals", 'title'=>"ListProposalsAssociatedProject", @@ -442,7 +442,7 @@ $listofreferent = array( 'urlnew'=>DOL_URL_ROOT.'/fourn/commande/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id), // No socid parameter here, the socid is often the customer and we create a supplier object 'lang'=>'suppliers', 'buttonnew'=>'AddSupplierOrder', - 'testnew'=>$user->hasRight('fournisseur','commande', 'creer') || $user->hasRight('supplier_order', 'creer'), + 'testnew'=>$user->hasRight('fournisseur', 'commande', 'creer') || $user->hasRight('supplier_order', 'creer'), 'test'=>!empty($conf->supplier_order->enabled) && $user->hasRight('fournisseur', 'supplier_order', 'lire') || $user->hasRight('supplier_order', 'lire')), 'invoice_supplier'=>array( 'name'=>"BillsSuppliers", @@ -454,8 +454,8 @@ $listofreferent = array( 'urlnew'=>DOL_URL_ROOT.'/fourn/facture/card.php?action=create&projectid='.$id.'&backtopage='.urlencode($_SERVER['PHP_SELF'].'?id='.$id), // No socid parameter here, the socid is often the customer and we create a supplier object 'lang'=>'suppliers', 'buttonnew'=>'AddSupplierInvoice', - 'testnew'=>$user->hasRight('fournisseur','facture', 'creer') || $user->hasRight('supplier_invoice', 'creer'), - 'test'=>!empty($conf->supplier_invoice->enabled) && $user->hasRight('fournisseur','facture', 'lire') || $user->hasRight('supplier_invoice', 'lire')), + 'testnew'=>$user->hasRight('fournisseur', 'facture', 'creer') || $user->hasRight('supplier_invoice', 'creer'), + 'test'=>!empty($conf->supplier_invoice->enabled) && $user->hasRight('fournisseur', 'facture', 'lire') || $user->hasRight('supplier_invoice', 'lire')), 'contract'=>array( 'name'=>"Contracts", 'title'=>"ListContractAssociatedProject",