Skip to content

Commit

Permalink
Fix: access error when user not right to view all customers
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Dec 8, 2017
1 parent c4b2c3e commit 0432718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/paiement/cheque/card.php
Expand Up @@ -46,7 +46,7 @@
// Security check
$fieldname = (! empty($ref)?'ref':'rowid');
if ($user->societe_id) $socid=$user->societe_id;
$result = restrictedArea($user, 'cheque', $id, 'bordereau_cheque','','',$fieldname);
$result = restrictedArea($user, 'cheque', $id, 'bordereau_cheque','','fk_user_author',$fieldname);

$sortfield=GETPOST('sortfield', 'alpha');
$sortorder=GETPOST('sortorder', 'alpha');
Expand Down

0 comments on commit 0432718

Please sign in to comment.