Don’t show ‘use my …’ link to send-only users

Since they’re not going to be testing the content of the messages this
isn’t feature that they need.
This commit is contained in:
Chris Hill-Scott
2018-08-07 11:10:00 +01:00
parent 646ba6e8c3
commit dda93e64de

View File

@@ -438,7 +438,7 @@ def send_test_step(service_id, template_id, step_index):
step_index == 0 and
template.template_type != 'letter' and
not (template.template_type == 'sms' and current_user.mobile_number is None) and
current_user.has_permissions('view_activity')
current_user.has_permissions('manage_templates', 'manage_service')
):
skip_link = (
'Use my {}'.format(first_column_headings[template.template_type][0]),