diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php index 8f0cb2862a7..2d4c7504a30 100644 --- a/htdocs/holiday/define_holiday.php +++ b/htdocs/holiday/define_holiday.php @@ -220,6 +220,7 @@ if (!empty($search_name)) { $filters.=natural_search(array('u.firstname','u.lastname'), $search_name); } if ($search_supervisor > 0) $filters.=natural_search(array('u.fk_user'), $search_supervisor, 2); +$filters.= ' AND employee = 1'; // Only employee users are visible $listUsers = $holiday->fetchUsers(false, true, $filters); if (is_numeric($listUsers) && $listUsers < 0) @@ -356,8 +357,10 @@ else print ''; if ($canedit) print ''; print ''; + + // Button modify print ''; - if (! empty($user->rights->holiday->define_holiday)) + if (! empty($user->rights->holiday->define_holiday)) // Allowed to set the balance of any user { print ''; }