NopCommerce version 3.8
Adding an address restriction against a state or country does not impact addresses already saved in the system. For example, my store used to allow shipping to Mexico. Now, due to a change in regulations, I can no longer ship to Mexico. So I add a restriction to stop Mexico as a ship to country at checkout. If customers have added Mexico as a ship to address in the past then they are still allowed to choose the existing Mexico address at checkout. So, the restriction seems to only apply to NEW addresses. This is certainly a bug, right?
Step to recreate:
1. Create a customer account
2. Make sure shipping to Mexico is allowed
2. Enter an address into the system using Mexico as the ship to country
3. Place an order using this address
4. Change shipping restrictions to NOT allow shipping to Mexico (from admin panel)
5. Using the same customer account, place another order. You will be allowed to choose the address showing Mexico as the country.