Panamanians and foreigners are equal before the law, but the law may, for reasons of labor, health, morality, public safety and national economy, subordinate to special conditions or deny the exercise of certain activities to foreigners in general. Likewise, the law or the authorities, according to the circumstances, may take measures exclusively affecting nationals of certain countries in case of war or in accordance with the provisions of international treaties.