The Navy certainly had the power to determine whether any officer of that service, active or inactive, had forfeited the privilege of remaining in the service of the United States.
The Navy cannot be circumscribed in issuing qualified discharges if the rules of fairness and due consideration are followed.