mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 14:38:24 -04:00
Fix bug with incorrect redirect to send_one_off
If a user has only send_message permissions, when they click on a template name they are currently taken to the `send_one_off` page. This is incorrect as if there is more than one SMS sender or email reply to address, then they should pick the address they wish to use. This commit fixes that bug by redirecting them to the `set_sender` route. Note, if there is only one sender then the `set_sender` will redirect the user on to the `send_one_off` route. https://www.pivotaltracker.com/story/show/176541486
This commit is contained in:
@@ -65,7 +65,7 @@ def view_template(service_id, template_id):
|
||||
|
||||
if should_skip_template_page(template['template_type']):
|
||||
return redirect(url_for(
|
||||
'.send_one_off', service_id=service_id, template_id=template_id
|
||||
'.set_sender', service_id=service_id, template_id=template_id
|
||||
))
|
||||
|
||||
page_count = get_page_count_for_letter(template)
|
||||
|
||||
Reference in New Issue
Block a user