diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php index 6d74aa109e0..71d456f8e16 100644 --- a/htdocs/holiday/define_holiday.php +++ b/htdocs/holiday/define_holiday.php @@ -214,6 +214,16 @@ if (count($typeleaves) == 0) } else { + $canedit=0; + if (! empty($user->rights->holiday->define_holiday)) $canedit=1; + + // Get array of ids of all childs + $userchilds=array(); + if (empty($user->rights->holiday->read_all)) + { + $userchilds=$user->getAllChildIds(); + } + print '