Not under international law it isn't. Countries have never been under any obligation to permit their own territory to be used for transit by another nation. That's beyond absurd.
In this exact case there was an obligation.