added filter (now has effect on sql query) for department consistent to what we have in absences/index