Merge pull request #22113 from dolibit-ut/patch-526

Update list.php
This commit is contained in:
Laurent Destailleur 2022-09-07 13:06:04 +02:00 committed by GitHub
commit bb6e6084cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
*/