Bug Fix: One-off button is missing for users with only ‘send message’ permission.

This commit is contained in:
Beverly Nguyen
2025-10-23 11:47:29 -07:00
parent 16b60665a0
commit 06b4ecbbcf

View File

@@ -846,9 +846,7 @@ def get_skip_link(step_index, template):
and step_index == 0
and template.template_type in ("sms", "email")
and not (template.template_type == "sms" and current_user.mobile_number is None)
and current_user.has_permissions(
ServicePermission.MANAGE_TEMPLATES, ServicePermission.MANAGE_SERVICE
)
and current_user.has_permissions(ServicePermission.SEND_MESSAGES)
):
return (
"Use my {}".format(first_column_headings[template.template_type][0]),