forked from Wavyzz/dolibarr
Debug v18
This commit is contained in:
@@ -1082,11 +1082,7 @@ function checkUserAccessToObject($user, array $featuresarray, $object = 0, $tabl
|
||||
$useridtocheck = 0;
|
||||
if ($feature == 'holiday') {
|
||||
$useridtocheck = $object->fk_user;
|
||||
if (!in_array($useridtocheck, $childids)) {
|
||||
return false;
|
||||
}
|
||||
$useridtocheck = $object->fk_validator;
|
||||
if (!in_array($useridtocheck, $childids)) {
|
||||
if (!in_array($object->fk_user, $childids) && !in_array($object->fk_validator, $childids)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user