mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 09:42:38 -05:00
ken-use-only-new-service-permissions
This commit is contained in:
@@ -76,7 +76,7 @@ def validate_and_format_recipient(send_to, key_type, service, notification_type)
|
||||
if notification_type == SMS_TYPE:
|
||||
international_phone_info = get_international_phone_info(send_to)
|
||||
|
||||
if international_phone_info.international and not service.can_send_international_sms:
|
||||
if international_phone_info.international and 'international_sms' not in service.permissions:
|
||||
raise BadRequestError(message="Cannot send to international mobile numbers")
|
||||
|
||||
return validate_and_format_phone_number(
|
||||
|
||||
Reference in New Issue
Block a user