A few years ago, I was a witness for a case in which the exact scenario you described occurred. The commander was found guilty, given an absolute discharge, and fined £500 with costs.
Answer your question?
The case happened in England, Ireland may or may not be different.