mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
servicepermission enum part 5
This commit is contained in:
@@ -57,14 +57,14 @@ from notifications_python_client.errors import HTTPError
|
||||
PLATFORM_ADMIN_SERVICE_PERMISSIONS = OrderedDict(
|
||||
[
|
||||
(
|
||||
"inbound_sms",
|
||||
ServicePermission.INBOUND_SMS,
|
||||
{
|
||||
"title": "Receive inbound SMS",
|
||||
"requires": "sms",
|
||||
"endpoint": ".service_set_inbound_number",
|
||||
},
|
||||
),
|
||||
("email_auth", {"title": "Email authentication"}),
|
||||
(ServicePermission.EMAIL_AUTH, {"title": "Email authentication"}),
|
||||
]
|
||||
)
|
||||
|
||||
@@ -558,7 +558,7 @@ def service_set_inbound_number(service_id):
|
||||
is_default=True,
|
||||
inbound_number_id=form.inbound_number.data,
|
||||
)
|
||||
current_service.force_permission("inbound_sms", on=True)
|
||||
current_service.force_permission(ServicePermission.INBOUND_SMS, on=True)
|
||||
return redirect(url_for(".service_settings", service_id=service_id))
|
||||
|
||||
return render_template(
|
||||
|
||||
Reference in New Issue
Block a user