Lock Time Sheets Based on Date

Lock Time Sheets Based on Date

Let's imagine you want all employees to submit their weekly time sheets by Friday. Moreover, only users with the "Projects Manager" profile should be able to add or change time sheets for days before the last Friday. This feature is implemented via the custom script below.