Fixes expensereport downloads
This commit is contained in:
parent
f2d5e43381
commit
af0000d568
@ -892,11 +892,13 @@ function checkUserAccessToObject($user, array $featuresarray, $object = 0, $tabl
|
|||||||
}
|
}
|
||||||
if ($feature == 'expensereport') {
|
if ($feature == 'expensereport') {
|
||||||
$useridtocheck = $object->fk_user_author;
|
$useridtocheck = $object->fk_user_author;
|
||||||
|
if (!$user->rights->expensereport->readall) {
|
||||||
if (!in_array($useridtocheck, $childids)) {
|
if (!in_array($useridtocheck, $childids)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($sql) {
|
if ($sql) {
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user