Erratic, unpredictable absences such as allowing an employee to come in and leave at any time is not a reasonable accommodation as per the Americans with Disabilities Act (ADA).
See All 11 Episodes of "Human Resources Essentials Blog"