I'm familiar with the てもいい form to ask for permission to do something in the future. For instance:
Is it okay if I eat the candy?
How would I ask if something I did already in the past was permitted? I thought to change いい to よかった but wasn't sure if that would have the right meaning. For example, I'd like to say:
Was it okay that I ate the candy?