Are you aware of the TV Series that ran from 1995-2005 called "JAG," which is almost exactly the same as your premise? It was explained in the show opening that:  

> Following in his father's footsteps as a Naval aviator, Lieutenant
> Commander Harmon Rabb Jr. suffered a crash while landing his Tomcat on
> a storm-tossed carrier at sea. Diagnosed with night blindness, Harm
> transferred to the Navy's Judge Advocate General Corps, which
> investigates, defends and prosecutes the law of the sea. There, with
> fellow JAG lawyer Major Sarah MacKenzie, he now fights in and out of
> the courtroom with the same daring and tenacity that made him a top
> gun in the air.

https://en.wikipedia.org/wiki/JAG_(TV_series)

By the way, I think it was in season 3 that he had laser surgery that cured his night blindness, and he got to fly Tomcats again. He deployed to Kosovo and won a DFC, but that only lasted a few episodes. He went back to JAG after that, but he kept his flight status current.