FIX Missing id in call of restrictedArea for expense report card.php
This commit is contained in:
parent
99e67bcc21
commit
32767a487b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user