Update list.php
This commit is contained in:
parent
64f2f324de
commit
212536a3fd
@ -72,7 +72,14 @@ if ($user->societe_id > 0)
|
|||||||
//$socid = $user->societe_id;
|
//$socid = $user->societe_id;
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
$result = restrictedArea($user, 'stock', $objectid, '', 'advance_inventory');
|
if (empty($conf->global->MAIN_USE_ADVANCED_PERMS))
|
||||||
|
{
|
||||||
|
$result = restrictedArea($user, 'stock', $objectid);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = restrictedArea($user, 'stock', $objectid, '', 'advance_inventory');
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize array of search criterias
|
// Initialize array of search criterias
|
||||||
$search_all=trim(GETPOST("search_all",'alpha'));
|
$search_all=trim(GETPOST("search_all",'alpha'));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user