This fixes #8290.  I had to set the task to timesheets.edit instead of just edit.