Military personnel do not have freedom of speech on duty.
Not just on duty, but during disciplinary hearing for a junior officer.