How to ask if an action in the past was permissible?


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?




> お菓子を食べても良かったですか？  
>  お菓子を食べても大丈夫でしたか？
>
> Was it okay to eat the candy?

This is already grammatically correct, but it says nothing about whether the
speaker actually ate it or not. If you need to tell you actually ate it, you
can say something like:

> お菓子を食べたんですが、良かったですか？  
>  お菓子を食べてしまいましたけど大丈夫でしたか？

* * *

Also note that いいか, よかったか and so on without です/ます are unrealistically blunt
and impolite. Avoid it unless you can behave like a tyrant. In casual
settings, you should use the rising intonation ("いい?" or "よかった?") instead of
か.




> お菓子を食べても良かったですか？  
>  お菓子を食べても大丈夫でしたか？
>
> Was it okay to eat the candy?

This is already grammatically correct, but it says nothing about whether the
speaker actually ate it or not. If you need to tell you actually ate it, you
can say something like:

> お菓子を食べたんですが、良かったですか？  
>  お菓子を食べてしまいましたけど大丈夫でしたか？

* * *

Also note that いいか, よかったか and so on without です/ます are unrealistically blunt
and impolite. Avoid it unless you can behave like a tyrant. In casual
settings, you should use the rising intonation ("いい?" or "よかった?") instead of
か.

