neither is any one else!
When an aircraft is on the ground, the laws of that country apply. This applies both before and after a flight. These local laws take precedence over any laws that would apply based on the aircraft's country of residence, or nationality of passengers or crew.
The laws...