13 int employee =
request->parameter(
"employee").toInt();
14 QString smonth =
request->parameter(
"month");
15 QDate month = QDate::fromString(smonth,
"yyyy-MM-dd");
22 if (!db()->canAccessAttendance(employee).can_read) {
23 serviceError(
request, response, 403, tr(
"Permission denied"), tr(
"Cannot access this employee"));
27 serviceOK(
request, response, toList(db()->attendanceChecklist(employee, month)));