mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Merge remote-tracking branch 'upstream/develop' into loaddolibarrenv
This commit is contained in:
@@ -50,6 +50,17 @@ $modBarCodeThirdparty = '';
|
||||
|
||||
$maxperinit = 1000;
|
||||
|
||||
// Security check (enable the most restrictive one)
|
||||
//if ($user->socid > 0) accessforbidden();
|
||||
//if ($user->socid > 0) $socid = $user->socid;
|
||||
if (!isModEnabled('barcode')) {
|
||||
accessforbidden('Module not enabled');
|
||||
}
|
||||
//restrictedArea($user, 'barcode');
|
||||
if (empty($user->admin)) {
|
||||
accessforbidden('Must be admin');
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
@@ -263,13 +274,6 @@ if ($action == 'initbarcodeproducts') {
|
||||
* View
|
||||
*/
|
||||
|
||||
if (!$user->admin) {
|
||||
accessforbidden();
|
||||
}
|
||||
if (empty($conf->barcode->enabled)) {
|
||||
accessforbidden();
|
||||
}
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
llxHeader('', $langs->trans("MassBarcodeInit"));
|
||||
|
||||
Reference in New Issue
Block a user