Skip to content

Commit

Permalink
Update list.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 10, 2018
1 parent 64f2f32 commit 212536a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion htdocs/product/inventory/list.php
Expand Up @@ -72,7 +72,14 @@
//$socid = $user->societe_id;
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
$search_all=trim(GETPOST("search_all",'alpha'));
Expand Down

0 comments on commit 212536a

Please sign in to comment.