Section 224(1) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(1)When it shall be absolutely requisite for the Senior Officer of two or more ships, not being a Flag Officer or Commodore, to be absent from his own ship and to go on board another ship under his orders, for the better conducting of any important service on which he may be engaged, he shall direct the officer commanding such ship, to bear him in his proper rank, as lent for particular service, and while so borne, the said Senior Officer shall have the same command and authority in every respect as he would have had if present in his own ship.