forked from Wavyzz/dolibarr
Update list.php
This commit is contained in:
@@ -21,18 +21,24 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/fourn/product/list.php
|
||||
* \ingroup produit
|
||||
* \brief Page to list supplier products and services
|
||||
* \file htdocs/fourn/product/list.php
|
||||
* \ingroup product
|
||||
* \brief Page to list supplier products and services
|
||||
*/
|
||||
|
||||
|
||||
// Load Dolibarr environment
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT .'/product/class/product.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT .'/societe/class/societe.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT .'/fourn/class/fournisseur.class.php';
|
||||
|
||||
$langs->loadLangs(array("products", "suppliers"));
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('products', 'suppliers'));
|
||||
|
||||
|
||||
// Get Parameters
|
||||
$sref = GETPOST('sref', 'alphanohtml');
|
||||
$sRefSupplier = GETPOST('srefsupplier');
|
||||
$snom = GETPOST('snom', 'alphanohtml');
|
||||
@@ -72,6 +78,7 @@ if (empty($user->rights->produit->lire) && empty($user->rights->service->lire))
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
// Permissions
|
||||
$permissiontoadd = ($user->hasRight('produit', 'lire') || $user->hasRight('service', 'lire'));
|
||||
|
||||
|
||||
@@ -111,6 +118,7 @@ if (empty($reshook)) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user