From 32767a487b2dafa1bafd773379f2890295e541be Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 Mar 2019 10:18:58 +0100 Subject: [PATCH] FIX Missing id in call of restrictedArea for expense report card.php --- htdocs/expensereport/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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