diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index c6d87acef4d..bf5cb8528de 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -66,7 +66,7 @@ $socid = GETPOST('socid', 'int')?GETPOST('socid', 'int'):GETPOST('socid_id', 'in // Security check $id=GETPOST("id", 'int'); if ($user->societe_id) $socid=$user->societe_id; -$result = restrictedArea($user, 'expensereport', 0, 'expensereport'); +$result = restrictedArea($user, 'expensereport', $id, 'expensereport'); // Hack to use expensereport dir