Insufficient Permission for Attendance

i get this error when i checkin from the user side in hrms, from the admin side employee checkin is working but from the user side not working, and all this thing handle by the ‘‘client script’’. this all the thins is working from the " server script ".

joining date and “Process Attendance After” in (shift_type) doctype all are ok .
i want solution for " client script ‘’.
anyone have any solution.