Section 225(7) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(7)Non-executive officers appointed in command of shore establishments may exercise such functions of military command as may be necessary for the proper performance of their duties.