mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
added INTERNATIONAL_SMS
This commit is contained in:
@@ -446,7 +446,7 @@ def send_one_off_step(service_id, template_id, step_index):
|
||||
dict_to_populate_from=get_normalised_placeholders_from_session(),
|
||||
template_type=template.template_type,
|
||||
allow_international_phone_numbers=current_service.has_permission(
|
||||
"international_sms"
|
||||
ServicePermission.INTERNATIONAL_SMS
|
||||
),
|
||||
)
|
||||
|
||||
@@ -560,7 +560,7 @@ def _check_messages(service_id, template_id, upload_id, preview_row, **kwargs):
|
||||
max_errors_shown=50,
|
||||
guestlist=allow_list,
|
||||
remaining_messages=remaining_messages,
|
||||
allow_international_sms=current_service.has_permission("international_sms"),
|
||||
allow_international_sms=current_service.has_permission(ServicePermission.INTERNATIONAL_SMS),
|
||||
)
|
||||
|
||||
if request.args.get("from_test"):
|
||||
|
||||
@@ -594,11 +594,11 @@ def service_set_sms_prefix(service_id):
|
||||
def service_set_international_sms(service_id):
|
||||
form = ServiceOnOffSettingForm(
|
||||
"Send text messages to international phone numbers",
|
||||
enabled=current_service.has_permission("international_sms"),
|
||||
enabled=current_service.has_permission(ServicePermission.INTERNATIONAL_SMS),
|
||||
)
|
||||
if form.validate_on_submit():
|
||||
current_service.force_permission(
|
||||
"international_sms",
|
||||
ServicePermission.INTERNATIONAL_SMS,
|
||||
on=form.enabled.data,
|
||||
)
|
||||
return redirect(url_for(".service_settings", service_id=service_id))
|
||||
|
||||
@@ -97,7 +97,7 @@ def tour_step(service_id, template_id, step_index):
|
||||
dict_to_populate_from=get_normalised_placeholders_from_session(),
|
||||
template_type=template.template_type,
|
||||
allow_international_phone_numbers=current_service.has_permission(
|
||||
"international_sms"
|
||||
ServicePermission.INTERNATIONAL_SMS
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user