Skip to content

Commit

Permalink
Merge pull request #8164 from hregis/6.0_bug
Browse files Browse the repository at this point in the history
Fix: nocheck for "fournisseur", already check with "societe"
  • Loading branch information
eldy committed Feb 14, 2018
2 parents 4d6f87e + 23ee674 commit 27c5563
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/product/fournisseurs.php
Expand Up @@ -63,7 +63,9 @@
$fieldvalue = (! empty($id) ? $id : (! empty($ref) ? $ref : ''));
$fieldtype = (! empty($ref) ? 'ref' : 'rowid');
if ($user->societe_id) $socid=$user->societe_id;
$result=restrictedArea($user,'produit|service&fournisseur',$fieldvalue,'product&product','','',$fieldtype);
$result=restrictedArea($user,'produit|service',$fieldvalue,'product&product','','',$fieldtype);

if (empty($user->rights->fournisseur->lire)) accessforbidden();

$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
$sortfield = GETPOST("sortfield",'alpha');
Expand Down

0 comments on commit 27c5563

Please sign in to comment.