He told me that I could go to the cinema provided that I finished (not I had finished) my homework.
You can ask a new question or answer this question.