From b0bb0b97802c2ba28ea66dec56f58a4b064444cc Mon Sep 17 00:00:00 2001 From: Pea Tyczynska Date: Tue, 16 Jun 2020 15:52:14 +0100 Subject: [PATCH] Make sure people without international sms permission can send to crown dependencies --- app/notifications/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/notifications/rest.py b/app/notifications/rest.py index ed1c4a871..e53dffd0a 100644 --- a/app/notifications/rest.py +++ b/app/notifications/rest.py @@ -163,7 +163,7 @@ def get_notification_return_data(notification_id, notification, template): def _service_can_send_internationally(service, number): international_phone_info = get_international_phone_info(number) - if international_phone_info.international and \ + if (international_phone_info.international and international_phone_info.country_prefix != '44') and \ INTERNATIONAL_SMS_TYPE not in [p.permission for p in service.permissions]: raise InvalidRequest( {'to': ["Cannot send to international mobile numbers"]},