Nerys Myk wrote:
Kirk and Sulu aren't in their chain of command. They answer to their commanding officer, not Kirk or Sulu.
Nonetheless, Kirk and Sulu still held higher ranks than they did. The guards had no business ordering them around anymore than someone serving on another vessel would. Each posting has its own chain of command, but Starfleet as a whole functions because of an overall chain of command that applies to everyone. Enlisted personnel do not order around flag officers under any circumstances. The guards were out of order.